Home > Back-end >  How to use c language to interlaced TXT text content deleted
How to use c language to interlaced TXT text content deleted

Time:09-22

A TXT text, size, 3 g, it is too big, how all can't open it. Hope to streamline the content of the text with the C language, the requirement is that every 10 rows of data extraction and 1 row data, finally extracted data collecting and saved as a new TXT text, hope everybody who help the younger brother, otherwise trials not bottom go to,

CodePudding user response:

Say two words:
A newline is \ r \ n? According to whether a newline logo can accurately determine the "line", if so, the combination of fscanf () should be able to achieve this,

CodePudding user response:

Thank eldest brother reply, this is part of a 500 MB text, there is no clear line identifier, the text content is such a form of 3 g, is too big, want to use C language leaner, I'm not a programmer, so turn the
  • Related