Input loop: Difference between revisions

Add SmallBASIC
imported>Arakov
(Add SmallBASIC)
Line 737:
 
Close a
</syntaxhighlight>
 
==={{header|SmallBASIC}}===
Open a text file and print content line by line:
<syntaxhighlight lang="qbasic">
open "input.txt" for input as #1
while(!eof(1))
input #1, c
print c
wend
close #1
</syntaxhighlight>
 
25

edits