I'm creating a script that will build phones in a Meridian Phone system based on a CSV file. I would have a second file that would only contain the TN for each phone.
What has gotten me stuck is that I cannot find an easy way to delete a line from the top of the file.
I want to read a line, (I'm using fgets) and after my function that proccess that data ends, i want to delete that line. (So it won't be used again, it is being copied to a existing phone file as part of my function)
Any thoughts? I could post the whole code of what I'm working on, but I felt the question would be less confusing if I told you what I was trying to accomplish.
Mike King
mking@bridgew.edu
What has gotten me stuck is that I cannot find an easy way to delete a line from the top of the file.
I want to read a line, (I'm using fgets) and after my function that proccess that data ends, i want to delete that line. (So it won't be used again, it is being copied to a existing phone file as part of my function)
Any thoughts? I could post the whole code of what I'm working on, but I felt the question would be less confusing if I told you what I was trying to accomplish.
Mike King
mking@bridgew.edu