OPEN TO READ This command will open a file, ready for reading.
Syntax
    OPEN TO READ File Number, Filename
Parameters
    File Number
Integer The file number to open, using a file number range of 1 through to 32
    Filename
String The file name to open
Returns
This command does not return a value.
Description
The file must exist or the command will fail. You can open up to 32 files at the same time, using a file number range of 1 through to 32.
Example Code
    cls

    open to read 1,"data.dat"

    if file open(1)=1

    read byte 1,a

    print "value read = "+str$(a)

    endif

    close file 1

    do

    loop

    end
See also
FILE Commands Menu Index