title: C# - Check if File is Text Based
body: <p>How can I test whether a file that I'm opening in C# using FileStream is a "text type" file?  I would like my program to open any file that is text based, for example, .txt, .html, etc.</p>
  
  <p>But not open such things as .doc or .pdf or .exe, etc.</p>