I'm developing a C project for school, and I have to read a CSV file. My problem is that some values include spaces, and that's why I can't use fscanf(file, "%s", string);.
I've tried this : fscanf(file, "%[0-9A-Za-z ,.-]", string);, fscanf(file, "%[0-9A-Za-z ,.\-]", string); and fscanf(file, "%[0-9A-Za-z ,.--]", string); but none of these are working.
Can anyone help me ?