Saved Bookmarks
| 1. |
Solve : Append file contents in new line? |
|
Answer» HI Experts, My requirement is to APPEND the contents of file2.txt to file1.txt in a new line. I TRIED the below OPTIONS, i) type file2.txt >> file1.txt ii)copy /b file1.txt + file2.txt But the new contents from text2.txt were not appended in a new line. Instead they are continuing in the same line. please check the attachment & revert as soon as you can. Thanks in advance. -Arunach [recovering disk space - old attachment DELETED by admin]It would appear that file 1 does not have a crlf line end, easy to fix, append a crlf then append file 2 Code: [Select]echo.>>file1.txt type file2.txt >> file1.txtHi gpl, You are correct. It fixed my problem. Thanks a lot. Cheers, Arun |
|