yoko #1 This habit actually came from using PureBasic... check the file size return -1 if not exist, -2 if directory, I don't know if it applies to other languages