[PHP] Re: Strange behaviour while adding a line at the BOF

2001-08-02 Thread Er Galvão Abbott

On Wed, 1 Aug 2001 15:13:10 -0500, [EMAIL PROTECTED] (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 [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
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
  [EMAIL PROTECTED]
-
To send me an e-mail just remove
the CAPITAL TEXT.
-

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Re: Strange behaviour while adding a line at the BOF

2001-08-01 Thread Richard Lynch

 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 [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
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



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]