Re: Checking file integrity
- Posted by Robert Craig <rds at RapidEuphoria.com> Apr 21, 2003
- 497 views
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