title: Read file stream reader
body: <p>What is my mistake as I'm unable to find an example on the Internet that matches what I'm doing or at least I'm not sure if it does?</p>
  
  <p>The problem I'm having is it does not like</p>
  
  <pre><code>hexIn = fileStream.Read()
  </code></pre>
  
  <p>Code:</p>
  
  <pre><code>FileStream fileStream = new FileStream(fileDirectory, FileMode.Open, FileAccess.Read);
  String s;
  
  try
  {
      for (int i = 0; (hexIn = fileStream.Read() != -1; i++)
      {
          s = hexIn.ToString("X2");
          //The rest of the code
      }
  }
  finally
  {
      fileStream.Close();
  }
  </code></pre>