title: Reading multiple lines in C using fscanf
body: <p>i'm currently doing an uni project which has to read a multiple lines sequence of inputs given in a .txt format. This is my first experience with C, so i don't know much about reading files with fscanf and then processing them. The code i wrote goes like this:</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;stdlib.h&gt;
  
  int main() {
      char tipo [1];
      float n1, n2, n3, n4;
      int i;
      FILE *stream;
      stream=fopen("init.txt", "r");
      if ((stream=fopen("init.txt", "r"))==NULL) {
          printf("Error");
      } else {
          i=0;
          while (i&lt;4) {
              i++;
  //i know i could use a for instead of a while
              fscanf(stream, "%s %f %f %f %f%", &amp;tipo, &amp;n1, &amp;n2, &amp;n3, &amp;n4);
              printf("%s %f %f %f %f", tipo, n1, n2, n3, n4);
          }
      }
      return 0;
  }
  </code></pre>
  
  <p>My "init" file is formatted like this:</p>
  
  <pre><code>L 150.50 165.18 182.16 200.50
  G 768.12 876.27 976.56 958.12
  A 1250.15 1252.55 1260.60 1265.15
  L 200.50 245.30 260.10 275.00
  A 1450.15 1523.54 1245.17 1278.23
  G 958.12 1000.65 1040.78 1068.12
  </code></pre>
  
  <p>I don't know how to <em>tell</em> the program to skip a line after the first one is read.</p>
  
  <p>Thanks for the help in advance!</p>