I have written a data acquisition system, and right now it creates the text file "data.txt" and I have a batch program where the qbasic program runs and then "copy data.txt lpt1"
Works fine, but now I want to specifically name and save the text file for archiving purposes.
This is what I have:
open "data.txt" for output as #3
Then the batch file copies it to LPT1 outside of Qbasic. But the batch file points specifically to data.txt
What I want:
input "filename"; name$ 'How do I add the ".txt so the operator doesn't have to type it? Or do I even need the .txt?
now how do I get the whole file to the printer within Qbasic? I have seen posts on OPEN "LPT1:BIN" FOR OUTPUT AS
but then that only copies one variable to the printer. Can the whole text file be contained in one varible?
Thanks for all your help!!
Dammit, Jim, I'm an engineer-not a programmer!!
Works fine, but now I want to specifically name and save the text file for archiving purposes.
This is what I have:
open "data.txt" for output as #3
Then the batch file copies it to LPT1 outside of Qbasic. But the batch file points specifically to data.txt
What I want:
input "filename"; name$ 'How do I add the ".txt so the operator doesn't have to type it? Or do I even need the .txt?
now how do I get the whole file to the printer within Qbasic? I have seen posts on OPEN "LPT1:BIN" FOR OUTPUT AS
but then that only copies one variable to the printer. Can the whole text file be contained in one varible?
Thanks for all your help!!
Dammit, Jim, I'm an engineer-not a programmer!!