Using Java to test for file damage and corruption -
i looking @ writing program can test files corruption and/or damage. prefer write program in java.
now tricky part, possible use java test files corruption/damage in many different file types? looking @ checking .pdf
.html
, .txt
files, fear more files added onto list soon. have no idea if possible write or not. if java can not possible c?
i think going have take file file basis. example
- text files - make sure can read file using filereader
- html - make sure text file , html file valid
- pdf - use pdf generator see if can read pdf , valid
but alex has suggest, doesn't matter if in java. long can read bytes can check.
you have define corruption. if corruption mean correct disk blocks on hd might need lower level programming language. if mean bytes represent correct data can in language.
Comments
Post a Comment