title: How to read float values from binary file using c#?
body: <p>I'm trying to read <code>float</code> values from a <code>binary</code> file, </p>
  
  <pre><code>public static void tmpTest ( )
      {
          string fileName = @"c:\debug\tmp_1.bin";
  
          /* Write */
          using ( BinaryWriter bw = new BinaryWriter ( File.Open( fileName, FileMode.Create ) ))
          {
              bw.Write ( 10.001f );
              bw.Write ( 10.002f );
          }
  
          /* Read */
          using ( BinaryReader br = new BinaryReader ( File.Open ( fileName, FileMode.Open ) ) )
          {
              int val_1 = br.Read (); // Output : 25
              int val_2 = br.Read (); // Output : 4
          }
      }
  </code></pre>
  
  <p>I know that I'm missing something at <code>Read</code> section, when I read those values I get <code>val_1</code> as <strong><code>25</code></strong> &amp; val_2 as <strong><code>4</code></strong> instead of 10(as the return type is integer),  please guide me what am I doing wrong here.</p>
  
  <p>Many Thanks in advance.</p>