Replace a particular line in a text file using php?
问题 I have a text file that stores lastname, first name, address, state, etc as a string with a | delimiter and each record on a separate line. I have the part where I need to store each record on a new line and its working fine; however, now I need to be able to go back and update the name or address on a particular line and I can't get it to work. This how to replace a particular line in a text file using php? helped me here but I am not quite there yet. This overwrites the whole file and I