QBasic Tutorial 40 - Text Files Part 2 - Checking if the File Exists - QB64


Tutorial 40 continues from Part 1. This tutorial shows what happens if a file, that does not exist, is opened for input. This tutorial shows how to check to see if the text file exists and how to make the text file if the file does not exist.

Notes
EOF - End Of File
LOF - Length Of File

Code Download
QBT40_1.BAS
QBT40_2.BAS
QBT40_3.BAS



QBasic / QB64 Links

QB64 is a free download at www.qb64.com

QB64 Wiki & Manual is found at qb64.com/wiki.html

QBasic 1.1 comes with OldDOS. 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