I am merging many text files in one but problem is that they don't have new line at the end of text.
Is there any way to append new line to all files using MS dos command or batch file
I am using cmd.exe of Vista
|
I am merging many text files in one but problem is that they don't have new line at the end of text. Is there any way to append new line to all files using MS dos command or batch file I am using cmd.exe of Vista
| |||
|
feedback
|
|
You can run this as a batch file
This way you don't have to specify the names but all the files must be in the same folder. The
Other than that, if the result is not exactly as you want, probaby all you need is just changing what are | |||||||
feedback
|
|
You can concatentate files using COPY For example, files: data1.txt and data2.txt can be combined by:
and the result will be in dataFull.txt. If you leave off the destination it will all be in the first listed file. To insure a newline the easiest, although not most elegant method would be to create a file, newline.txt, which is simply a blank line and include it after each file:
It would be fairly straight forward to include this addition in a looping structure. | |||
|
feedback
|