I created the following code and saved it as test.bas in the root of my C drive:
Code: Select all
print "TESTING 123 ABC"
system
Code: Select all
shell "\path\to\qbasic.exe /RUN \test.bas > \test.out"
open "\test.out" for binary as #1
print lof(1)
close #1
end
Code: Select all
\path\to\qbasic.exe /RUN \test.bas > \test.out
Code: Select all
TESTING 123 ABC
Code: Select all
shell "\test.exe > \test.out"
open "\test.out" for binary as #1
print lof(1)
close #1
end
Makes me think something funny is going on with the qbasic interpreter unless my DOSBOX is acting up.
Has anyone else experienced this issue? and how have you corrected it?