Reputation: 1
Is there any way to detect the corrupted text file using java 1.6 onwards. We have tried using all the file readers and still it is not detecting the corruptness. Suppose if we change the .exe
file to .txt
file and still we are unable to detect the corruptness of the text file and reader is able to read the corrupted file.
Example of the code snippet we used:
FileReader fr = new FileReader(destDir + fileName);
fr.read();
Upvotes: 0
Views: 295