Re: Checking file integrity

new topic     » goto parent     » topic index » view thread      » older message » newer message

rforno at tutopia.com wrote:
> The attached program tries to verify file integrity.
> I ran this program on a data CDROM, which I know has errors because Nero
> stops with "read error" when trying to copy it. However, the program does
> not detect
> any error. Am I doing something wrong?

I don't know what you expected to happen.
Your program seems to just read each file
until it encounters a -1 (end of file).
If a file has been corrupted, maybe you will
get a -1 prematurely. Euphoria itself will never
report an error. Maybe you should count the number of
bytes and compare with the size in the dir() entry.

Regards,
    Rob Craig
    Rapid Deployment Software
    http://www.RapidEuphoria.com

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu