C fscanf ignore commas

C
fscanf(FILE* stream, "%[^,],%[^,],%[^,]", string1, string2, string); // string in file
Source

Also in C: