I'd suggest you just write to another file and then copy the result over the original.
In reply to Re: read from a file and write into the same file
by akho
in thread read from a file and write into the same file
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |