|
Posted by Andy Jeffries on 07/25/06 16:01
On Thu, 20 Jul 2006 13:58:59 -0700, Chung Leong wrote:
> XML and any text format is very inefficiency when up
> dates/deletions are frequent, as you have to rewrite the file
> everytime.
Actually, that's not strictly true. If your text format file has fixed
length records, you could do random writing to it if you fopen it using
"a+" access mode and then use fseek/fwrite to overwrite just the record
you're interested in. No need to rewrite the whole file every time.
Cheers,
Andy
--
Andy Jeffries MBCS CITP ZCE | gPHPEdit Lead Developer
http://www.gphpedit.org | PHP editor for Gnome 2
http://www.andyjeffries.co.uk | Personal site and photos
Navigation:
[Reply to this message]
|