Home > OS >  Batch to add a line to TXT file
Batch to add a line to TXT file

Time:10-05

Several TXT file, I am using VB program were converted into excel file, and then add the header, and then converted into a TXT file, as the VB program speed is too slow, please god make up a batch code

For example:
26.188, 4.5744, 310
23.605, 4.5423, 92.3
14.117, 3.506, 96.3
To:
D, o, p
26.188, 4.5744, 310
23.605, 4.5423, 92.3
14.117, 3.506, 96.3

CodePudding user response:

 @ echo off 
Echo d, o, p & gt; Newfile
Type asdf. TXT & gt;> Newfile

  • Related