I think you can do fopen(...,'w+')/fseek()/fclose() in some combination that
would do that...

Might need to fwrite(...,EOF) or something...

--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
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 <[EMAIL PROTECTED]>
Newsgroups: php.general
To: <[EMAIL PROTECTED]>
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
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to