On Saturday 07 February 2004 07:08, [EMAIL PROTECTED] wrote: > I am using the below code (kind of sloppy..). I have tried for fopen r+, > w, and w+, but no matter what I do, the file is always truncated, and > previously entered data is erased. I have been unable to fix this.
Assuming that you're trying to add something to the end of an existing file: either fopen() using mode 'a' or use fseek(). -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * ------------------------------------------ Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general ------------------------------------------ /* "In short, _N is Richardian if, and only if, _N is not Richardian." */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php