Re: truncate?
| From: | Richard Lynch | Date: | Sat, 22 Sep 2001 03:53:18 +0000 |
| Subject: | Re: truncate? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-68267@lists.php.net to get a copy of this message | ||
I think you can do fopen(...,'w+')/fseek()/fclose() in some combination that
would do that...
Might need to fwrite(...,EOF) or something...
--
WARNING richard@zend.com address is an endangered species -- Use
ceo@l-i-e.com
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
----- Original Message -----
From: Urb Lejeune <urb@usats.com>
Newsgroups: php.general
To: <php-general@lists.php.net>
Sent: Friday, September 21, 2001 6:39 AM
Subject: truncate?
> Looking through the documentation and several book I
> can not find a PHP file function that mimics Perl's
>
> truncate(FH,offset);
>
> This is very handy to remove the contents of an existing file.
>
> Am I overlooking something?
>
> Urb
>