File operations : return specific errorcode
Posted: Thu Jul 24, 2003 10:18 am
Hi there,
I would love to have 2 things in file opeartions
1. returning defined errorcode
Fileoperations like open/create should return a defined errorvalue if something has gone wrong.
Like in some languages I use I get an :
error 5 : unable to open exclusive
Error 3 : Path not found
2. read/write return
read/write operations like readdata/writedata,.. should return the length read/written, so validation would be easier.
Greetings
tom
I would love to have 2 things in file opeartions
1. returning defined errorcode
Fileoperations like open/create should return a defined errorvalue if something has gone wrong.
Like in some languages I use I get an :
error 5 : unable to open exclusive
Error 3 : Path not found
2. read/write return
read/write operations like readdata/writedata,.. should return the length read/written, so validation would be easier.
Greetings
tom