QBasic Tutorial 39 - Text Files Part 1 - Making a Text File & Reading a Text File - QB64



Up to this point, all information, used by the programs could not be saved. When the program was closed all information was lost. To keep information saved, in QBasic, text files must be used.

It is very important to remember that a file has to be closed once the program is done using it. Also, the file can not be open for output and input at the same time.

When a program is opened, it is assigned a number. For example #1 is for the first file open, #2 for the second and so on.

EOF - End of File

Code Download
QBT39_1.BAS
QBT39_2.BAS
QBT39_3.BAS
QBT39_4.BAS
QBT39_5.BAS




QBasic / QB64 Links



QB64 is a free download at www.qb64.org

QB64 Wiki & Manual is found at www.qb64.org/wiki/Main_Page

QBasic 1.1 is found within OldDOS.exe.
OldDos is a free download at download.microsoft.com/download/win95upg/tool_s/1.0/W95/EN-US/olddos.exe

On some web browsers, the Microsoft link does not work, because the download comes as an exe file. A zip file of OldDOS can be found at www.pcxt-micro.com/download.html

QBasic 1.1 needs DOSBox to run on Windows Vista and greater, Mac, and Linux.
DosBox is a free download at www.dosbox.com

Free QB64/QBasic Code 

QBasic.Net - www.qbasic.net

Pete's QBasic Site - www.petesqbsite.com/index.php

QB45 - qb45.org

Phatcode - games.phatcode.net