You are here:

Qbasic, Quickbasic/reading text from text files


ProGrammerXD wrote at 2013-02-03 16:29:47
open "file.txt" for input as #1     'This file.txt is your text file

input #1, line$          'line$ now holds the value of the text (file.txt)

close #1

print line$          'Here you print out the text of file.txt

Qbasic, Quickbasic

All Answers

Ask Experts


Don Schullian


I`ve worked in BASIC since the Commodore days and maintain a web site part of which is devoted to helping others with thier problems. I`m proficient in all versions of PowerBASIC but cross over to QuickBASIC and Qbasic frequently.

©2017 All rights reserved.

[an error occurred while processing this directive]