WAD Copy/append adds a character

samintz

Scott Mintz
May 20, 2008
1,555
26
Solon, OH, USA
I was trying to use COPY to append data to a file.
Code:
copy foo.txt + foo1.txt foo.txt

C:\Program Files\LunaSA\foo\foo1.txt =>>! C:\Program Files\LunaSA\foo\foo.txt
     1 file copied

The foo.txt was a 0 byte file and foo1.txt contained 63 bytes. After the copy, foo.txt contained 64 bytes. There was a 0x1A byte appended at the end of the file.

If I use this code to append, it works correctly:
Code:
type foo1.txt >> foo.txt
 

Similar threads

Replies
7
Views
2K