Hii friends
Well i am working on hex values of a file.Now to test it i delete single byte and then try to write the file using the remaining bytes.Well the file gets corrupted but still the file is constructed.
So is there any code with which i can test if a file is corrupted or not???
I am only talking about resource files.....
kylelendo
-4
Junior Poster in Training
Recommended Answers
Jump to PostHow you define file is corrupt ?
Jump to PostOnly way I would assume to determine if a file is corrupt, is to compare the contents to it's original file content. Just opinion.
Jump to PostThere might be a way to check length of each binary and if one is corrupt, to identify it.
If you still need help with this, post a few lines of original binary content and a few lines of binary contents altered.
All 9 Replies
debasisdas
580
Posting Genius
Featured Poster
kylelendo
-4
Junior Poster in Training
codeorder
197
Nearly a Posting Virtuoso
kylelendo
-4
Junior Poster in Training
codeorder
197
Nearly a Posting Virtuoso
Teme64
215
Veteran Poster
kylelendo
-4
Junior Poster in Training
kylelendo
-4
Junior Poster in Training
Teme64
215
Veteran Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.