Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Check whether a file is a binary file or a text based file

807569Jul 25 2006 — edited Jul 25 2006
Is there a low cost (time) way to check whether a file is a binary file or a text only file in a platform independant way.

I am writing the program which search inside the files fora given reguler expression I want to bypass the content search if the file is binarry without wasting time to search inside it.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 22 2006
Added on Jul 25 2006
6 comments
317 views