Dos to read a text file

March 2, 2010 at 15:29:11
Specs: Windows XP
Hi,

I am trying to use a batch file to read the 1st line in a text file and save it as another file. I need to extract the 5th character from the 1st line and store it as another text file.

Problem is the 1st line in the text has a space in it and the entire content in the line does not store into the variable.

for eg. if my 1st line in the text has abcd : 1234
I need to read the content as 1234 and save this as 1234.txt file. Is this doable?


See More: Dos to read a text file

Report •

#1
March 2, 2010 at 21:13:43

Report •

#2
March 2, 2010 at 21:16:17
dos_help, you'll likely get more and more knowledgeable responses in the programming forum @:
http://www.computing.net/forum/prog...
HTH.
Ed in Texas.

Report •
Related Solutions


Ask Question