Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

WAD Copy/append adds a character

samintz

Scott Mintz
May
1,582
27
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
 
TCC 20.00.25 x64 Windows 7 [Version 6.1.7601]
TCC Build 25 Windows 7 Build 7601 Service Pack 1
 

Similar threads

Replies
7
Views
2K
Back
Top