Sorry for the messy tittle.i dont know what suit with my prob.
i have posted a thread last time about string array and compare them with some data.seems like no solution for that,i want to try this way.i want to use double array.
same case, i have a file with this data:
a1,b1,c3,
a2,b1,c3,
a3,b2,c2,
a2,b3,c1,
a3,b2,c1,

means,i have 5 sets of data.i want them to be loaded to a string array so that when i query array data,i can get this kind of set data such as:
a1,b1,c3,

i have an idea about using double array,1 string array and 1 pointer array.any1 has comment or solution about this problem?

thanks for advance

Use fgets() to read each line.
Use sscanf() to parse the line (or better yet, strtod).

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.