title: C Opening a file to check if it is Binary, if so print it is binary
body: <p>I've made a program that opens files and searches for a word</p>
  
  <p>I want it to only work on TEXT Files</p>
  
  <p>Is there a way provided by C to check if a file is BINARY, and if so, I want to exit the program before any operations take place</p>
  
  <p>Thanks</p>