Error trapping non-existent?

Blitz3D Forums/Blitz3D Programming/Error trapping non-existent?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

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:

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?