T-DoG
01-13-2000, 08:58 AM
I hope this is not the wrong place to post. I know my question doesn't really have anything to do with system optimization, but I saw a lot of posts regarding general tech support questions. I apologize if the post is inappropriate.
This is a question about DOS batch files. I want to read from a plain text file. In C++, I can use the input file stream (ifstream) to read from a file. But how do I do it in a DOS batch file? I want to make a loop that will go through the text file one line at a time. Each line will be stored to a variable and proccessed (ex. display to screen). Then it goes on to the next line until the end of the text file is reached.
Thanks in advance.
This is a question about DOS batch files. I want to read from a plain text file. In C++, I can use the input file stream (ifstream) to read from a file. But how do I do it in a DOS batch file? I want to make a loop that will go through the text file one line at a time. Each line will be stored to a variable and proccessed (ex. display to screen). Then it goes on to the next line until the end of the text file is reached.
Thanks in advance.