#COMPILE EXE "s60_file_read.exe"
' Sample: Read text from file
FUNCTION PBMAIN() AS LONG
    DIM txt AS STRING
    OPEN "sample_output.txt" FOR INPUT AS #1
    PRINT "Reading file:"
    WHILE NOT EOF(1)
        LINE INPUT #1, txt
        PRINT txt
    WEND
    CLOSE #1
    FUNCTION = 0
END FUNCTION
