Hi John,

Just brilliant, thanks.

Ken

> -----Original Message-----
> From: John W. Krahn [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, March 09, 2002 12:08 AM
> To: [EMAIL PROTECTED]
> Subject: Re: over-writing a file
> 
> 
> Ken Cole wrote:
> > 
> > Hi,
> 
> Hello,
> 
> > I have a file with say the value "02" in it.
> > 
> > I can open the file, lock the file, read the value, 
> increment the value
> > and do a write but the write always appends and never 
> over-writes the
> > exisitng value.  I of course then unlock and close.
> > 
> > I do a seek before the write to the beginning of the file, 
> even checked
> > with "tell" and it returns "0",but the following print or syswrite
> > always appends.
> > 
> > Why?  How do I over-write?
> 
> 
> perldoc -q "I just want to increment the number in the file"
> 
> 
> John
> -- 
> use Perl;
> program
> fulfillment
> 
> -- 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to