title: How can I read float data from a binary file using R
body: <p>I know there is no float in R. so How can I read float data from a binary file.
  the struct of data in C as follows</p>
  
  <pre><code>typedef struct
  {
      int date;
      int open;
      int high;
      int low;
      int close;
      float amount;
      int vol;
      int reservation;
  } StockData; 
  
  to.read = file(filename, "rb");
  line1=readBin(to.read,  "int",8);
  </code></pre>
  
  <p>amount is not the right value. how can I get the right value as float?</p>