Hi....... I have a complicated homework...... I have a data which is csv file. I have to take this data from csv file and do sum calculations on these data's elements. But my problem is I cant take data from csv file to do this...
I can take data from dat or txt file with
printf( "%s %s %d %f",abc.x,abc.y,abc.z,abc.w);
fscanf("%s %s %d %f",abc.x,abc.y,&abc.z,&abc.w);
of course I have a structure on beginning my program and I know how to open file with fopen but it is not working when I try on csv file???
What is the difference why can not I do that????
note: when I take data from dat file there are only numbers or chars. but my csv file after every value there is a comma (,). Is this the problem???
PLease help.................