Check whether a file is a binary file or a text based file
807569Jul 25 2006 — edited Jul 25 2006Is 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.