Forums Register Login

Validate a file

+Pie Number of slices to send: Send
Hi Ranchers,
I need to find whether the files in a directory is corrupted or not..
we have some pdf's which gives some error like "this document is corrupted" or some thing like this in a directory. I need to find out which of the files were giving this errors..I cannot open each file to chek for the error. hence i am thinking of writing a java program for this.
appreciate if you can throw some points
thanks,
mahesh
+Pie Number of slices to send: Send
Do you have parsing facilities for pdfs? If you can parse pdf, then you can go through it and find compiler errors. Otherwise you would be stuck with catching Exceptions.

If you can parse pdf, try producing a pdf reader and selling it.
Get meta with me! What pursues us is our own obsessions! But not this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 820 times.
Similar Threads
using classpath with javac Problem
problem with k-shell
JAR file question
Jars not recognizing in unix
Copy directory and replacing strings into files
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 18:27:22.