You are here: Re: Suggestion needed on data storage format in text file « PHP Programming Language « IT news, forums, messages
Re: Suggestion needed on data storage format in text file

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация