C | SoloLearn: Learn to code for FREE!

0

C

I have 10 numbers like this is a.dat file 0.21, -0.07,0.97,0.64, -1.21, 1.06, -0.61, -0.30, 0.86,0.62 How will I read from it in c Please Tell Me. I need to solve this.

c

5/11/2020 7:09:12 AM

Manjot Kaur

5 Answers

New Answer

+2

do you mean you need to sort Manjot Kaur ?

+1

So you have a file with 10 comma separated values (CSV). The code here will work, but may require modifications as it is meant for much larger multi-line CSV files. https://it.toolbox.com/question/loading-csv-file-as-a-c-array-020606

+1

Manjot Kaur please show us your attempt so we can help you. Please use the 8 rules for getting help from the community. Thanks and happy coding https://www.sololearn.com/Blog/38/8-simple-rules-to-get-help-from-the-community

0

https://code.sololearn.com/ciX7lMXb1zvS/?ref=app

0

thanks Dmitry 💫💫