Sunday, 15 September 2013

text - Reading different data from a textfile delimited with semicolons in C -


How to read different records of different data with semicolons in an array in C?

From the text file: Text one; 12.25; Give the text; 5; Lesson three; 1.253

  For phpen ... (i = 0; i  

General advice is to read the entire lines and then parse it With Sscanf or strtok, or whatever you find it easy to lose your place directly from the file in the sscanf input file (i.e. the first time something does not match, you need to back it up, as long as you cancel it here Do not want to.)


No comments:

Post a Comment