SyntaxFix
Write A Post
Hire A Developer
Questions
How about this?
fscanf(file,"%d %d %d %d %d %d %d",&line1_1,&line1_2, &line1_3, &line2_1, &line2_2, &line3_1, &line3_2);
In this case spaces in fscanf match multiple occurrences of any whitespace until the next token in found.
fscanf