Additional Returnvalues with File-Commands
Posted: Wed Jul 28, 2004 9:59 am
According to GPIs post in the German Board:
It seems that all the WriteXXX()-Functions don't return an errorcode or something like that. Therefore you can't react adequately to failures (for example a full disc).
Additionaly you could add ReturnValues to the CloseFile()-Procedure
0 - no Error
1 - Couldn't write - disc full
2 - File writeprotected
3 - etc.
This way you could also check the process of file creation and writing at the end.
It seems that all the WriteXXX()-Functions don't return an errorcode or something like that. Therefore you can't react adequately to failures (for example a full disc).
Additionaly you could add ReturnValues to the CloseFile()-Procedure
0 - no Error
1 - Couldn't write - disc full
2 - File writeprotected
3 - etc.
This way you could also check the process of file creation and writing at the end.