Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Re: Re: Safe way to open files

by Anonymous Monk
on Jun 16, 2002 at 22:26 UTC ( #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
Node Status?
node history
Node Type: note [id://174987]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (6)
As of 2021-06-23 21:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What does the "s" stand for in "perls"? (Whence perls)












    Results (122 votes). Check out past polls.

    Notices?