I know the value "a" adds to the end of the specified file, but how do you make it so that it adds to the beginning of a file?
I remember seeing how to do this before, but I can't remember where.
I almost forgot to mention that I am talking about PHP.
<Edited by Chris Roane on 12-16-2000 at 10:42 AM>
Read the documentation of php.net:
It said you could use the mode as "r+" to start writing/reading from the beginning.
Hope it helps.
Thanks! I can't believe I missed that when reading that exact page.