8

Need to convert value to be taken as int/float from a file in c

view full story
linux-howto

http://stackoverflow.com – I have a txt file which has the following data: 5 676.54 6453.22 7576.776 8732.2 6 I need to read the file in a C program line by line. But whatever method I use to read the file, I get the value as a string. I need to get the values as int and float types(depending on the values). Is there any way I can do this? Operating platform is linux. (HowTos)