Home > Back-end >  C read TXT data
C read TXT data

Time:11-28



Could you tell me how to put them as shown in the data read in a matrix (two data in each row, comma-separated) between the two data

Thank you big!

CodePudding user response:


Flost read1 read2;
Fscanf (" % f % f ", & amp; Read1 read2);

CodePudding user response:

reference 1st floor zjq9931 response:
flost read1, read2;
Fscanf (" % f % f ", & amp; Read1 read2);


Defines a two dimensional array, and then read cycles

CodePudding user response:

Can join 1
Can be involved 2
But 3 refs

CodePudding user response:

Read by yourself! There is no such convenient function for you
  • Related