Hello again.
Well, I see you are using QBasic.nothing wrong with that, in fact it is easy way to solve some problems is otherwise quite difficult using just the DOS commands.
Here's an example that might be of some help to you.
Let's say I write a very simple program in QBasic that looks like this:
Microsoft Windows XP [Version 5.1.2600]
d:\bin>type test.bas
PRINT " this is a test"
INPUT a$
PRINT a$
SYSTEM
As you can see here I have named it "test.BAS".
Now I can run the program using the following command line option:
d:\bin>qbasic /run test
The output will be like this:
this is
? HELLO
HELLO
d:\bin>
Of course, I had to enter the text "HELLO" and the program at code my response. Now, using the editor I will make a small program that I just call "inpu" and save it. The content is as follows:
d:\bin>type inpu
thisis inpu
d:\bin>
Now I am ready to test the redirection feature of the, actually the command line in Windows XP, as follows:
d:\bin>qbasic /run test <inpu
this is a test
? thisis inpu
thisis inpu
d:\bin>
Works like a happy puppy!Hope this is of some help to you.
Please note this is QBasic, not the compiler.