title: fscanf multiple lines [c++]
body: <p>I am reading in a file with multiple lines of data like this:  </p>
  
  <pre><code>:100093000202C4C0E0E57FB40005D0E0020C03B463
  :1000A3000105D0E0022803B40205D0E0027C03027C
  :1000B30002E3C0E0E57FB40005D0E0020C0BB4011D
  </code></pre>
  
  <p>I am reading in values byte by byte and storing them in an array.  </p>
  
  <pre><code>    fscanf_s(in_file,"%c", &amp;sc);  // start code
      fscanf_s(in_file,"%2X", &amp;iByte_Count); // byte count
      fscanf_s(in_file,"%4X", &amp;iAddr);    // 2 byte address 
      fscanf_s(in_file,"%2X", &amp;iRec_Type);  // record type 
  
      for(int i=0; i&lt;iByte_Count; i++)
      {
          fscanf_s(in_file,"%2X", &amp;iData[i]);
          iArray[(iMaskedAddr/16)][iMaskedNumMove+3+i]=iData[i];
      }
      fscanf_s(in_file,"%2X", &amp;iCkS);
  </code></pre>
  
  <p>This is working great except when I get to the end of the first line. I need this to repeat until I get to the end of the file but when I put this in a loop it craps out.<br>
  Can I force the position to the begining of the next line?<br>
  I know I can use a stream and all that but I am dealing with this method.<br>
  Thanks for the help</p>