in reply to writing to the top of a file

Or you could save each submission to disk in a separate file, then build your webpage from all the files in the directory, starting with the most recently saved file.

You don't have to put everything in the same file.

____________________
Jeremy
I didn't believe in evil until I dated it.

Replies are listed 'Best First'.
Re: Re: writing to the top of a file
by Dr. Mu (Hermit) on May 20, 2004 at 07:18 UTC
    Yes, but if each record is signficantly smaller than your file system's block size, you end up wasting a lot of space.
    A reply falls below the community's threshold of quality. You may see it by logging in.