WAD Copy/append adds a character

  • This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

samintz

Scott Mintz
May 20, 2008
1,229
11
Solon, OH, USA
#1
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