There are some perl modules that do what you describe, but they're generally not very efficient. See Tie::File for an example. For large files, you'd probably be better off using 2 files as described above.
In reply to Re: writing to a file
by Joost
in thread writing to a file
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |