RE: over-writing a file

2002-03-11 Thread Jenda Krynicky
From: "Scott Lutz" <[EMAIL PROTECTED]> > Re : perldoc -q "I just want to increment the number in the file" > > How does one find (out about) these obscure perldoc functions? > My word! The of-so-usual -h option gives you information on perldoc's ussage: perldoc [options] PageName|ModuleName|P

RE: over-writing a file

2002-03-09 Thread Ken Cole
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, >

RE: over-writing a file

2002-03-08 Thread Scott Lutz
al Message- From: John W. Krahn [mailto:[EMAIL PROTECTED]] Sent: March 8, 2002 6: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 va

Re: over-writing a file

2002-03-08 Thread Jon Molin
Anette Seiler wrote: > > Hi Ken, > > I encountered exactly the same problem today: How to read a file > AND change something in it? I was not able to do both of them at > the same time. > > I am sure there is a more correct way to do it, but my solution (in > the spirit of TIMTOWTDI) was to wri

Re: over-writing a file

2002-03-08 Thread Anette Seiler
Hi Ken, I encountered exactly the same problem today: How to read a file AND change something in it? I was not able to do both of them at the same time. I am sure there is a more correct way to do it, but my solution (in the spirit of TIMTOWTDI) was to write to a temporary file and then ren

Re: over-writing a file

2002-03-08 Thread John W. Krahn
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 se