Thanks for the suggestion
open($file_read,"+<","$file") or croak "cant open $file for read"; flock($file_read,2); my $count=<$file_read>; $count++; seek($file_read, 0, "0"); print $file_read $count; flock($file_read,8); close($file_read);
In reply to Re^2: File reade and recreate
by adriang
in thread File reade and recreate
by adriang
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |