Re: Checking file integrity
x
x
rforno at tutopia.com wrote:
> Wouldn't be it possible for Euphoria to return an error report in such a
> case, for example with a negative number different from -1 (EOF)?
> Maybe I'm wrong, but I think the OS has a variable called errno (under C)
> that can be accessed by the user. Couldn't it be used to that end?
I'm not aware of any test that I could make that would
detect an error on the disk media. Even if there were
such a test, would it be worth wasting a couple of machine
cycles on *every* byte read by *every* program?
I believe that each disk sector has a checksum on it.
Perhaps your "Nero" program sees if the checksum is correct.
I would have thought that the O/S would complain loudly
if a sector were bad (i.e. bad checksum).
Regards,
Rob Craig
Rapid Deployment Software
http://www.RapidEuphoria.com
|
Not Categorized, Please Help
|
|