READ
READ #fileN, var1 [, var2, … , varN]
Read variables var1
to varN
from a binary
data file. Variables can be numbers, strings and arrays.
See WRITE for writing variables to a file.
Example
12.3
a = "test"
b = 1,2,3,4]
c = [
' Write variables to file
open "text.bin" for output as #1
write #1, a, b, c
close #1
' Read variables from file
open "text.bin" for input as #1
read #1, a, b, c
close #1
print a
print b
print c
Code samples using READ
001 3 ways to print hello 5 times.bas
003 conditional branching.bas
004 loops.bas
006 arrays+.bas
3d wire cube v1.bas
3d wire cube.bas
3dtictac.bas
3dttt.bas
3dttt.bas
7gables.bas
anomail.bas
Balleta 2-11-15.bas
BAS_1968.bas
BAS_NOW.bas
betrayal: crows ii.bas
blackbox.bas
Blackbox.bas
bolmo.bas
Calendar.bas
calendar.bas
conrec-sb-v01.bas
crow.bas
cube3d.bas
dataminmax.bas
dogstar5.bas
Eliza.bas
eliza.bas
evdemo.bas
falling blocks - tetris.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 READ,
please send an email to smallbasic@gmail.com. You can help to improve information about
READ by submitting a pull request,
click View Source for details. Note, an offline language reference text file is also available - see the Download section.