I have been trying several different things, but have been unable to extract the data from the file correctly. I printed the return value of sscanf, and it read only 1 string from the line. So the format specifier %[^,] reads a string up to a comma, but it seems that it does not continue reading after it encounters a comma. Could someone provide a hint on how to continue reading the entire comma separated line? Thanks.
INFILE = fopen (application->fileName, "r");
while( fgets(line, 200, INFILE) != NULL)
sscanf (line, "%[^,] %[^,] %[^,] %[^,] %[^,] %[^,] %[^,] %[^,] %[^,] %[^,] %[^,]" , tmpName,