PDA

View Full Version : deleteing a certain section of txt file



fuston05
13 Oct 2010, 02:46 PM
I have been using fopen, fread, and fwrite to create and add content to txt files. Now i need to be able delete only certain sections of a txt file. the sections are appending "=>" to beginning of entries, I was using it to properly explode() the file for reading back properly. dont know if that helps.. Need some way to use delimiters like explode() does to find the section i need, and im not sure if that's the best way for this or not, and then I have no idea where to start for deleting that oart of the file only. any ideas? thanks in advance