|Not sure what the problem is, as qbasic will store text, and the program itself is simple ascii text:|
OPEN "TEST" FOR OUTPUT AS #1
PRINT #1, CHR$(34)+"Hello World"+CHR$(34)+"...AAAGH! Such a dated test phrase, ha ha"
SHELL "TYPE TEST"
PRINT "DONE HERE."
'------- END SNIPPET
qbasic IS compileable into executable files if you have BC.EXE, LINK.EXE, and BCOM45.LIB. Here's a batch that demonstrates the application of these items:
::the foll allows 1-line-modification of primary control dir in this case "COMANDS"
IF "%1"=="" GOTO EXPLAIN
:program must be copied to where the compiler & library reside
COPY %1.BAS %CMD%
BC /X /E /O %1 %1.OBJ %1.LST
LINK %1,,,BCOM45.LIB < NUL
:DEL %1.MAP :DEL %1.OBJ <-- possible addn's
ECHO USAGE: COMPILE basprogname[.BAS]
echo Where basprogname.BAS is the name of an ASCII QBASIC program file
ECHO and the .BAS extension is not required.
ECHO Two files will be created: basprogname.OBJ as the output of BC /X /E
ECHO and basprogname.EXE as the output of LINK which requires BCOM45.LIB
ECHO in order to merge the library functions required to make the .EXE
ECHO file independantly runnable (standalone executable).