Hi again.

I have a file that have about 1000 lines, and then, time by time I need to read some of this lines, for example:

13:00:00 read lines 01 to 100;
13:30 read lines 101 to 400;
....
15:00:00 read lines 900 to 1000.

There is a way to start the pointer of fgets or fscanf starts at the specific line?

Or i realy need to scan all file until the start line?

You'll really have to scan the file for the line. There's no telling where any specific lines start.

Ok..

thanks man..

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.