RobBentley
IS-IT--Management
- May 10, 2003
- 199
Hi,
I've quite happily written a graphical front end for some old command line software we have that writes out a config file and calls them at the command prompt.
Currently my application has a config.set file (which is basically a text file) with 1 line in it. This tells the program where the command line exe is. I read the whole file as a variable and use that when launching the cmd app.
I now want to put 3-4 different parameters into the file. So I want say 3 lines in a text file and I want the entire of line 1 to go into a variable, the entire of line two into another variable (etc etc).
How can I easily do this?
Cheers in advance.
Rob
I've quite happily written a graphical front end for some old command line software we have that writes out a config file and calls them at the command prompt.
Currently my application has a config.set file (which is basically a text file) with 1 line in it. This tells the program where the command line exe is. I read the whole file as a variable and use that when launching the cmd app.
I now want to put 3-4 different parameters into the file. So I want say 3 lines in a text file and I want the entire of line 1 to go into a variable, the entire of line two into another variable (etc etc).
How can I easily do this?
Cheers in advance.
Rob