title: Reading Text file in C, skip first line
body: <p>I have a big problem with my program. I would like to skip reading from 1st line and then start reading from others. I wasted so much time on searching it in the Internet.  </p>
  
  <p>This is my txt file.
  <div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>LP bfdhfgd ffhf  fhfhf hgf hgf hgf ffryt f uu  
  1 2015-01-17 20:08:07.994 53.299427 15.906657 78.2 0
  2 2015-01-17 20:09:13.042 53.299828 15.907082 73.3 11.2375183105
  3 2015-01-17 20:09:22.037 53.300032 15.90741 71.2 12.2293367386
  4 2015-01-17 20:09:29.035 53.300175 15.907675 71.5 10.8933238983
  5 2015-01-17 20:09:38.003 53.30025 15.907783 71.4 12.3585834503
  6 2015-01-17 20:09:49.999 53.300768 15.908423 72.4 14.1556844711
  7 2015-01-17 20:09:58.999 53.300998 15.908652 73.7 11.2634601593
  8 2015-01-17 20:10:06.998 53.301178 15.908855 72.6 10.8233728409
  9 2015-01-17 20:10:15.999 53.301258 15.908952 72.3 10.3842124939
  10 2015-01-17 20:10:22.999 53.301332 15.90957 71.5 10.7830705643
  
   </code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>   void OK(char * name)
  {
   GPS nr1; //my structure
   FILE *file;
   file = fopen(name, "r+t");
  
   if (file!=NULL)
   {
    cout &lt;&lt; endl;
       while (!feof(file)) 
          {
              fscanf(plik, "%d %s %d:%d:%f %f %f %f %f", &amp;nr1.LP, &amp;nr1.Date, &amp;nr1.hour, &amp;nr1.min, &amp;nr1.sek, &amp;nr1.dl, &amp;nr1.sz,                 &amp;nr1.high, &amp;nr1.speed);
        base.push_back(nr1);
  
        cout &lt;&lt; nr1.LP &lt;&lt; " " &lt;&lt; nr1.Date &lt;&lt; " " &lt;&lt; nr1.hour &lt;&lt; ":" &lt;&lt; nr1.min &lt;&lt; ":" &lt;&lt; nr1.sek &lt;&lt; " " &lt;&lt; nr1.dl &lt;&lt; " " &lt;&lt;             nr1.sz&lt;&lt; " " &lt;&lt; nr1.high &lt;&lt; " " &lt;&lt; nr1.speed &lt;&lt;endl; 
          }
   }
   else
   {
    cout &lt;&lt; endl &lt;&lt; "ERROR!";
    exit(-1);
   }
  
   fclose(file);
  
  }</code></pre>
  </div>
  </div>
  </p>