faqts : Computers : Programming : Languages : PHP : Function Libraries

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

19 of 23 people (83%) answered Yes
Recently 6 of 10 people (60%) answered Yes

Entry

Can I delete some data from a file without rewriting the whole thing?

Jun 13th, 1999 07:00
Nathan Wallace, Rasmus Lerdorf


Not really.  You can fseek() to the point in the file where you want to
start deleting, but then you have to rewrite all the data from then on.
There is no way to just yank stuff out of a file.