title: What is the advange of using fseek over using a sequence of fread in C?
body: <p>I'm a beginner in C programming and I have some questions regarding how to deal with files.</p>
  <p>Let us suppose that we have a binary file with N int values stored.
  Let us suppose that we what to read the i-th in value in the file.</p>
  <p>Is there any real advantage of using fseek for positioning the file pointer to the i-th int value and reading it after the fseek instead of using a sequence of i fread calls?</p>
  <p>Intuitively, I think that fseek is faster. But how the function finds the i-th value in the file without reading the intermediary information?</p>
  <p>I think that this is implementation-dependent. So, I tried to find the implementation of fseek function, without much success.</p>