Check out example codes for "C fscanf ignore commas". It will help you in understanding the concepts better.

Code Example 1

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

Learn ReactJs, React Native from akashmittal.com