I also don't think that there is a better way to do it.
How about just:
echo 'stuff' >> file.txt
This will be much faster and use buckets less memory than firing up a full blown perl interpretter. Works on Win32 or *nix. It's shorter. Better? Depends what you need.... As always YMMV.
C:\>echo Hello World! > better C:\>date /T >> better C:\>type better Hello World! Tue 17/02/2004 C:\>
cheers
tachyon
In reply to Re: Re: Add a line to the end of a file
by tachyon
in thread Add a line to the end of a file
by ecuguru
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |