I need to use fscanf to ignore all the white spaces and to not keep it.
I tried to use something like the combination between (*) and [^\\n]<
from the fscanf man page:
A directive is one of the following:
· A sequence of white-space characters (space, tab, newline, etc.;
see isspace(3)). This directive matches any amount of white
space, including none, in the input.
so
fscanf(file, " %s\n");
will skip all whitespace before reading in characters.