Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
13
Task/Input-loop/BaCon/input-loop.bacon
Normal file
13
Task/Input-loop/BaCon/input-loop.bacon
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
'--- some generic header file to give it a real test
|
||||
PRINT "Enter any file name you want to read ex: /usr/include/X11/X.h"
|
||||
INPUT filename$
|
||||
|
||||
text$ = LOAD$(filename$)
|
||||
SPLIT text$ BY NL$ TO TOK$ SIZE dim
|
||||
i = 0
|
||||
|
||||
'---dynamic index the end of an array is always null terminated
|
||||
WHILE (TOK$[i] ISNOT NULL)
|
||||
PRINT TOK$[i]
|
||||
INCR i
|
||||
WEND
|
||||
Loading…
Add table
Add a link
Reference in a new issue