For example, the following program is executed from within another FreeBasic program by "SHELL "c:\freebasic\fbc64 f.bas > ans". The f.bas program should place the output of the print commands to a file named ANS but it does not as stated above. This appears to be more or a Windows question using Freebasic. This process works with Microsoft's Basic interpreter.
Code: Select all
#lang "fblite"
b=4
c=5
?"b+c"
?b+c
SYSTEM