djtizzlemaster
Programmer
I'm getting pretty familiar with PHP fopen, fwrite, and fclose functions, which you can use to create, open, write to, and append to files. But I still havent figured out how to - or if you can - EDIT a file.
Let's say we've got this:
Now, what I want to do is change "Line 1" to "Line A."
Is there a simple way to do that, which doesn't require me to include everything that comes after Line A (such as "Line A\nLine 2\nLine 3")?
Let's say we've got this:
Code:
Line 1
Line 2
Line 3
Now, what I want to do is change "Line 1" to "Line A."
Is there a simple way to do that, which doesn't require me to include everything that comes after Line A (such as "Line A\nLine 2\nLine 3")?