Solved How can I transfer data from a qbasic file to txt file

July 1, 2015 at 07:24:12
Specs: Windows 7
I am doing a program of billing in qbasic,I want to store the information of the employee and the time,date,etc.Does anyone have any idea how to transfer it from a qbasic file to a txt file?

See More: How can I transfer data from a qbasic file to txt file

Report •


#1
July 1, 2015 at 15:14:24
convert qbasic file to a text file
https://www.google.com.au/webhp?hl=...

Report •

#2
July 1, 2015 at 17:30:04
✔ Best Answer
Not sure what the problem is, as qbasic will store text, and the program itself is simple ascii text:

'---- TEST.BAS
OPEN "TEST" FOR OUTPUT AS #1
PRINT #1, CHR$(34)+"Hello World"+CHR$(34)+"...AAAGH! Such a dated test phrase, ha ha"
CLOSE #1
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:
@ECHO OFF
@ECHO 
::the foll allows 1-line-modification of primary control dir in this case "COMANDS"
SET CMD=\COMANDS
IF "%1"=="" GOTO EXPLAIN
:program must be copied to where the compiler & library reside
COPY %1.BAS %CMD%
pushd %CMD%
@ECHO ON
BC /X /E /O %1 %1.OBJ %1.LST
LINK %1,,,BCOM45.LIB < NUL
@ECHO OFF
:DEL %1.MAP :DEL %1.OBJ <-- possible addn's
popd
goto :getout
:EXPLAIN
@ECHO OFF
ECHO USAGE: COMPILE basprogname[.BAS]
ECHO

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).
:GETOUT


Report •

Related Solutions


Ask Question