Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: empty a file

by l3nz (Friar)
on Jun 27, 2004 at 20:03 UTC ( [id://370033]=note: print w/replies, xml ) Need Help??


in reply to empty a file

Either you open the file in append mode or you truncate the file. The two thing don't logically go together.

Why don't you simply open the file in non-append mode? you'd get the same result as truncate plus append.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://370033]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (3)
As of 2024-04-25 17:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found