P
Petros Makris
(please forgive me i don't know how to find older messages if this is
already answered)
I am trying to understand why
fscanf( fp, "%s=%s\n", str1, str2);
doesn't work when I am trying to read from a text file the following
--------------------------------
key1=value1
key2=value2
--------------------------------
I can see that leaving a space before & after `=` it works. Shouldn't fscanf
see that?
I know i have to tokenize any line of the file with strtok() if I don't want
to use the space but i am just curious.
already answered)
I am trying to understand why
fscanf( fp, "%s=%s\n", str1, str2);
doesn't work when I am trying to read from a text file the following
--------------------------------
key1=value1
key2=value2
--------------------------------
I can see that leaving a space before & after `=` it works. Shouldn't fscanf
see that?
I know i have to tokenize any line of the file with strtok() if I don't want
to use the space but i am just curious.