Re: Strange behaviour while adding a line at the BOF
| From: | (Er Galv�o Abbott) | Date: | Thu, 02 Aug 2001 21:42:48 +0000 |
| Subject: | Re: Strange behaviour while adding a line at the BOF | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-61000@lists.php.net to get a copy of this message | ||
On Wed, 1 Aug 2001 15:13:10 -0500, ceo@l-i-e.com (Richard Lynch)
wrote:
>> I'm going nuts trying to add a line of data in the beginning of a text
>> file.
>
>Files are like cassette tapes.
>
>You can't add something at the beginning without re-copying everything
>somewhere else first, and then back again.
>
>You should either:
>1. Add to the end, and just make your reader/display program work backwords.
>This only works for small files.
>
>2. Use a database instead.
>
>--
>WARNING richard@zend.com address is an endangered species -- Use
>ceo@l-i-e.com
>Wanna help me out? Like Music? Buy a CD:
>http://l-i-e.com/artists.htm
>Volunteer a little time: http://chatmusic.com/volunteer.htm
>
>
Hey Richard, thanks a lot. NOW I understood. :)
Best regards,
Er Galvão Abbott
Webdeveloper
erabbott@DONTSPAMterra.com.br
---------------------------------
To send me an e-mail just remove
the CAPITAL TEXT.
---------------------------------