Menu
Hey all, I’ve been using the file functions with PHP a lot lately, but there’s one problem I’m having. I know that when you open a file, you have options of what you want to do when you write to it (put new stuff at the beginning, end, or overwrite the original). However, I want to know if there is a way you can overwrite just part of the file.
Like, say you have a file that looks like:
bananas
eggs
milk
Is there a way you can open this file, and select the second line and overwrite it such that you could change the file to:
bananas
cheese
milk
Any help would be greatly appreciated, even if it’s a “no” :p
– Chippp