Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Read text file into variable
Name: besmith05 Date: January 31, 2008 at 20:34:17 Pacific OS: XP CPU/Ram: Intel Product: ?
Comment:
I have a text file that contains a string like this:
C00000000940000000001SWT18A1101000
What I need to do is from within a batch file, read in the contents of the file and then get the value at a certain position like the character at position 15. I've been searching and searching and I can't find any examples and I'm a rookie at this stuff.
Summary: To get thew first line of a text file into a variable under DOS 6.22 see FAQ #25 at www.batchfiles.co.nr but pay attention the script requires to run Debug, so you have to put it onto your diskette re...
Summary: How can I get the content of a file into a variable, so that I can cut it. I grab a url and save it into a file. I now need to open the file and save its content in a variable. but dont know how to co...