You are here:

Qbasic, Quickbasic/reading text from text files

Advertisement


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

Volunteer


Don Schullian

Expertise

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.

©2016 About.com. All rights reserved.