
randolf00
Novice

Feb 20, 2004, 1:35 PM
Post #3 of 5
(1277 views)
|
Re: [davorg] Working with text files
[In reply to]
|
Can't Post
|
|
Thanks for the reply but Im a little confused... Im using the following code to open the file...would the code given go directly into this?? sysopen(FH, "list.txt", O_RDWR|O_APPEND|O_CREAT) or die "can't open $filename: $!"; flock(FH, LOCK_EX) or die "can't lock $filename: $!"; close(FH); How would i write the increment the number back into the file at the correct place?? Thanks for your advice so far. Im away to play around with what you suggested and see what I can do.... PS Im very new to perl ************Starting to understand**********
(This post was edited by randolf00 on Feb 20, 2004, 1:37 PM)
|