I need help for QBasic 1.1 program output to be stored in a .txt / .csv / .dat file in my Hard Disc for later read / printout etc.,
I have been using QBasic.1.1 for over 2 decades - see a sample .bas
program and supported .dat files attached herewith.
The results of running this program get displayed on the screen and
vanish in the next keystroke - I am unable to save the results in a
file .txt / .dat / .csv file in my hard disk.
I have tried the <redirect> function of MS DOS but the system just hangs.
Please help me!
QBasic Program output to be stored to a .txt or .csv or .dat
- burger2227
- Veteran
- Posts: 2466
- Joined: Mon Aug 21, 2006 12:40 am
- Location: Pittsburgh, PA
Re: QBasic Program output to be stored to a .txt or .csv or
We'd have to see your code to see what you are trying to do. Please put code inside of the CODE box buttons.
As to file attachments here, you would have to supply a link address to Drop box or such.
OPEN filename$ FOR OUTPUT AS #1 clears a file for new data using PRINT # or WRITE # for CSV files.
OPEN FOR APPEND adds data to the end of a new or previously written to file.
OPEN FOR BINARY or RANDOM use GET# or #PUT simultaneously to read or write.
As to file attachments here, you would have to supply a link address to Drop box or such.
OPEN filename$ FOR OUTPUT AS #1 clears a file for new data using PRINT # or WRITE # for CSV files.
OPEN FOR APPEND adds data to the end of a new or previously written to file.
OPEN FOR BINARY or RANDOM use GET# or #PUT simultaneously to read or write.
Please acknowledge and thank members who answer your questions!
QB64 is a FREE QBasic compiler for WIN, MAC(OSX) and LINUX : https://www.qb64.org/forum/index.php
Get my Q-Basics demonstrator: https://www.dropbox.com/s/fdmgp91d6h8ps ... s.zip?dl=0
QB64 is a FREE QBasic compiler for WIN, MAC(OSX) and LINUX : https://www.qb64.org/forum/index.php
Get my Q-Basics demonstrator: https://www.dropbox.com/s/fdmgp91d6h8ps ... s.zip?dl=0