Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: empty a file

by l3nz (Friar)
on Jun 27, 2004 at 20:03 UTC ( #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? | Other CB clients
Other Users?
Others rifling through the Monastery: (5)
As of 2022-08-10 17:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?