Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Re: Re: Safe way to open files

by Anonymous Monk
on Jun 16, 2002 at 22:26 UTC ( [id://174987]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Safe way to open files
in thread Safe way to open files

No. You do not want an unconditional seek in the routine. If it was opened with O_TRUNC or O_RDONLY it isn't needed (neither is truncate), if it was opened with O_APPEND then you definitely do not want to seek nor truncate.

Replies are listed 'Best First'.
Re: Re: Re: Re: Safe way to open files
by L0rdPhi1 (Sexton) on Jun 17, 2002 at 01:36 UTC
    Okay! Thanks a lot++

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (5)
As of 2024-04-18 13:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found