I'm fairly new to reading/writing to files so can someone show me how I would delete a line from a file then copy that same line but with additional information on it? Oh and I don't care if it leaves a blank space there.
Here's an example of what I want to do:
Original
PHP Code:
Line1 1
Line2 1
Line3 1
New
PHP Code:
Line1 1
Line2 11
Line3 1
I know I can do this by copying everything except the line I don't want into a new file then deleting the original and renaming the new file to the original. But the problem I had with this is that once I write additional information into it, the server crashes. So this is why I don't care for blank lines. =]
Thanks.
__________________