I want to scan a file and skip a line of text before reading. I tried:
fscanf(pointer,\"\\n\",&(*struct).test[i][j]);
But this syntax s
fgets would work here.
#define MAX_LINE_LENGTH 80 char buf[MAX_LINE_LENGTH]; /* skip the first line (pFile is the pointer to your file handle): */ fgets(buf, MAX_LINE_LENGTH, pFile); /* now you can read the rest of your formatted lines */