Files error codes |
The default setting is to exit the program, if there is a "file error". This can be: a file can't be opened, or read... However in most cases you want a bit more control over this. You can set the variable "_err_file" to "1" and switch on error handling. Every file operation returns a code to the variable "_file". The codes are defined in the "file.nah" include: code| error ----+------------------------- 0 | no error 1 | open error 2 | close error 3 | read error 4 | write error 5 | wrong file number 6 | end of file 7 | wrong position in filePrev: Files | Next: Memory |