INPUT
INPUT #fileN; var1 [,delim] [, var2 [,delim]] …
Reads data from file #fileN and stores the values in var1, var2 to varN. Specify a delimiter if necessary.
Example: Read a comma-separated-value file (csv)
' Create a csv-file
open "test.csv" for output as #1
for x = 1 to 10
print #1, x + "," + x^2 + "," + x^3
next
close #1
' Open the file and read the values
open "test.csv" for input as #1
while(!eof(1))
input #1; x, ",", x2, ",", x3
print x, x2, x3
wend
close #1
Code samples using INPUT
002 numeric variables.bas
004 loops.bas
005 challenge.bas
006 arrays+.bas
3d_palmx.bas
3dtictac.bas
3dttt.bas
3dttt.bas
4tune.bas
7gables.bas
agendus.bas
ai.bas
amortig.bas
anball 1.0.bas
anomail.bas
bairstow.bas
Balleta 2-11-15.bas
BAS_NOW.bas
BAS_NOWv2.bas
base64.bas
biorythms.bas
blackbox.bas
Blackbox.bas
blackjack.bas
BlackJack.bas
block.bas
bmpreal.bas
bolmo.bas
bowling7.bas
File
ACCESS
BGETC
BLOAD
BPUTC
BSAVE
CHDIR
CHMOD
CLOSE
COPY
DIRWALK
EOF
EXIST
FILES
FREEFILE
INPUT
INPUT
KILL
LOCK
LOF
MKDIR
OPEN
READ
RENAME
RMDIR
SEEK
SEEK
TLOAD
TSAVE
WRITE
If there is insufficient information on this page and you wish learn more about INPUT,
please send an email to smallbasic@gmail.com. You can help to improve information about
INPUT by submitting a pull request,
click View Source for details. Note, an offline language reference text file is also available - see the Download section.