Home > Back-end >  If part of the accurate read TXT file in c language data, ask the great spirit
If part of the accurate read TXT file in c language data, ask the great spirit

Time:09-20

A large database, for example, if the array is 1000 * 1000, required to list with 100 lines of 100 to 200 lines of 200 regional data read out and stored into a two dimensional array of 100 * 100, everyone a great god, o should if write programs, to help

CodePudding user response:

Positioning to read the line first, then read part you need

CodePudding user response:

reference 1/f, Simple, Soft reply:
positioning to read the line first, then read part of the need to

What about how to locate to the line, I only know to move the file pointer using Fseek, but cannot move across regions

CodePudding user response:

Are you a text file or binary file, if it is a text file, it is bad to move the cursor, because is not good, can read one line, if it is a binary file, as long as you know, the seek directly can, at any position
  • Related