jumping lines in a file using c

Posted by Nadav Stern on Stack Overflow See other posts from Stack Overflow or by Nadav Stern
Published on 2011-03-10T16:07:42Z Indexed on 2011/03/10 16:10 UTC
Read the original article Hit count: 307

Filed under:
|

hello i am trying to sort a textual file using c programming language, in order to sort the file i am using a unique key, i need to be able to jump from line to line in order to sort the file , the problem is that i do not know if there is a command in c which let me jump from the first line to lets say the 20 line for example the only solution which i know for it is to use each time fscanf with a loop but this solution is not very effective thanks in advance for your time.

© Stack Overflow or respective owner

Related posts about c

    Related posts about file