I want to run some commands
prog1 | fb-prog | prog3
That is, I want my freebasic program to read the output of prog1, process the data line by line, then write the results out so prog3 can process it.
I can do a do loop of line input to read the input, but how do i terminate the do loop? There is no file number involved, so I can't use the eof function.
Pseudocode of what I want to do.
Code: Select all
do
line input b
if test(b) is true
write line of output
end if
loop
Thanks,
David