in reply to File Locking
These bring us to the end of the file, and then sets the length to zero.
seek(MYFILE, 0, 0); truncate(MYFILE, 0);
The camelbook on seek tells me that seek(MYFILE, 0, 0); brings the file pointer to the beginning of a file.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: File Locking
by PodMaster (Abbot) on Nov 25, 2002 at 12:20 UTC | |
by Anonymous Monk on Jul 15, 2010 at 20:34 UTC | |
by Anonymous Monk on Aug 25, 2010 at 14:52 UTC |
In Section
Tutorials