Add tasks for all the new languages
This commit is contained in:
parent
9dc3c2bb62
commit
bba7bfd280
13208 changed files with 134745 additions and 0 deletions
22
Task/File-input-output/FreeBASIC/file-input-output.freebasic
Normal file
22
Task/File-input-output/FreeBASIC/file-input-output.freebasic
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
' FB 1.05.0 Win64
|
||||
|
||||
/'
|
||||
input.txt contains:
|
||||
|
||||
The quick brown fox jumps over the lazy dog.
|
||||
Empty vessels make most noise.
|
||||
Too many chefs spoil the broth.
|
||||
A rolling stone gathers no moss.
|
||||
'/
|
||||
|
||||
Open "output.txt" For Output As #1
|
||||
Open "input.txt" For Input As #2
|
||||
Dim line_ As String ' note that line is a keyword
|
||||
|
||||
While Not Eof(2)
|
||||
Line Input #2, line_
|
||||
Print #1, line_
|
||||
Wend
|
||||
|
||||
Close #2
|
||||
Close #1
|
||||
Loading…
Add table
Add a link
Reference in a new issue