title: Reading ints from file with C
body: <p>This is a very simple question, but I can't seem to find something about it in here already. I want to read two integers from a file with C. My code now is this:</p>
  
  <pre><code>int main() {
      FILE *fp;
      int s[80];
      int t;
  
      if((fp=fopen("numbers", "r")) == NULL) {
          printf("Cannot open file.\n");
      } else {
          fscanf(fp, "%d%d", s, &amp;t);
          printf("%d %d\n", s[0], s[1]);
      }
  
  return 0;
  }
  </code></pre>
  
  <p>I get the first integer from the file, but the next one is just a random number. My file is like this:</p>
  
  <pre><code>100 54
  </code></pre>
  
  <p>Thanks in advance</p>