FileExists?
BlitzMax Forums/BlitzMax Programming/FileExists? FileType is the simple command for fileexist check.
Yup - FileType returns 0 for doesn't exist, 1 is a file, 2 is a folder. Same as in Blitz3D, I think.
Better to check for FileType() = 1, rather than FileType() <> 0, otherwise you could potentially end up trying to carry out file operations on a folder, which will cause errors.
Better to check for FileType() = 1, rather than FileType() <> 0, otherwise you could potentially end up trying to carry out file operations on a folder, which will cause errors.
aha, good info thanks.