File input/output: Difference between revisions

Add SmallBASIC
(Add SmallBASIC)
 
Line 897:
</pre>
 
==={{header|FutureBasic}}===
Modified May 2024
Prompts the user for an input text file.
Line 1,137:
close #in
close #out
</syntaxhighlight>
 
==={{header|SmallBASIC}}===
<syntaxhighlight lang="qbasic">
open "inpput.txt" for input as #1
open "output.txt" for output as #2
 
while not eof(1)
c = bgetc(1)
bputc #2, c
wend
 
close #1
close #2
</syntaxhighlight>
 
25

edits