C fscanf игнорируйте запятые
fscanf(FILE* stream, "%[^,],%[^,],%[^,]", string1, string2, string); // string in file
Cautious Caiman
fscanf(FILE* stream, "%[^,],%[^,],%[^,]", string1, string2, string); // string in file