title: Reading the last 50 characters of a file with fseek()
body: <p>I'm trying to read the last 50 characters in a file by doing this:</p>
  
  <pre><code>FILE* fptIn;
  char sLine[51];
  if ((fptIn = fopen("input.txt", "rb")) == NULL) {
      printf("Coudln't access input.txt.\n");
      exit(0);
  }
  if (fseek(fptIn, 50, SEEK_END) != 0) {
      perror("Failed");
      fclose(fptIn);
      exit(0);
  }
  fgets(sLine, 50, fptIn);
  printf("%s", sLine);
  </code></pre>
  
  <p>This doesn't return anything that makes sense remotely. Why?</p>