wrote:
> If you mean what channels are assigned to pre-opened channels on the
stack,
> I seem to recall that they are #0 = stdin, #1 = stdout and #3 = error.
Ooops! #2 = error, not #3
Of course in SBasic you dont have to compile it first, thus the program:
100 REMark test pipe
110 :
120 REPeat l
130 IF EOF(#0): EXIT l
140 INPUT#0; l$
150 PRINT#1; l$
160 END REPeat l
170 PRINT#2; CMD$
180 BEEP 2,2
190 QUIT
Invoked by
EX "ram1_test_bas", "ram1_test_bas", #1, #2; "This is an error"
would copy the source of the program to channel #1 and "This is an error" on
channel #2
Per
_______________________________________________
QL-Users Mailing List
http://www.q-v-d.demon.co.uk/smsqe.htm