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
.
Comment on
Re: Re: Re: Safe way to open files
Select
or
Download
Code
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++
[reply]
In Section
Seekers of Perl Wisdom