Instead of using "r+", use "w"
This will clear the file for you :)

> -----Original Message-----
> From: Mr. Austin [mailto:[EMAIL PROTECTED]
> Sent: Monday, 2 February 2004 1:51 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP] Help with files
> 
> 
> I'm not entirely sure why it is that you assume I did not 
> read the manual or
> the online documentation (which is very thorough).  I'll find 
> my answers
> elsewhere.
> 
> Thank you,
> Mr. Austin
> 
> ----- Original Message -----
> From: "Jason Wong" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Sunday, February 01, 2004 8:43 PM
> Subject: Re: [PHP] Help with files
> 
> 
> > On Monday 02 February 2004 10:33, Mr. Austin wrote:
> >
> > > $buff = fopen("sample.txt", "r+");
> >                                ^
> > -------------------------------+
> >
> > RTFM to see what other options you can use.
> >
> > --
> > 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
> > ------------------------------------------
> > /*
> > Give your very best today.  Heaven knows it's little enough.
> > */
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to