Hi I am trying to read a text file which has a few lines of double values
I need to go line by line and put them in several arrays
ex 4.2,3.4,5.7,8.7
2.5,6.4,4.4
How can I do this in C
I also need to save the values in an arrays type double
Please help me
Thanks

I would investigate the functions strtok() and strtof(), strtod(), strtold().

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.