samintz
Scott Mintz
- May
- 1,590
- 27
I was trying to use COPY to append data to a file.
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:
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