Any suggestions? The usual result is the file written is empty. I have tried so many different ways to do this, that I have really confused myself.... one version looks like the following (don't laugh)
open (RECORD_NUMBER, "counter_data.dat") or die; $count = <RECORD_NUMBER>; $count = $count + 1; print RECORD_NUMBER "$count"; close (RECORD_NUMBER) or die;
In reply to File I/O by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |