Previous Top Index Next

External File Functions (DOS+UNIX)

The following routines are available after loading the library file files.r with the command: CALL load "files.r".

FILESIZE(file)

Returns the size of file in bytes. The file must not be opened.
SAY filesize("test.dat")

READWORD(file)

Read one word from file file
SAY readword("test.dat")

EXIST(file), STATE(file)

Returns '1' if file exists, else '0'.
SAY exist("test.dat")


Previous Top Index Next