FileType is a good way to check a file beforehand, this will report on whether a file is a folder, a file or doesn't exist.
Also, check the handle value (memory address) it will equal zero if no data is loaded... something like this:
By the way... Do you have the Debug mode enabled on the IDE?
Also, check the handle value (memory address) it will equal zero if no data is loaded... something like this:
file=OpenFile("File.txt") If file<>0 ReadLine(file) Else Print "No File to Read" EndIf
By the way... Do you have the Debug mode enabled on the IDE?