Feb 20, 2004, 1:35 PM
Post #3 of 5
Thanks for the reply but Im a little confused...
Re: [davorg] Working with text files
[In reply to]
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: $!";
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)