lwinkenb
asked on
scanf question
I've never really used scanf or fscanf before, and I was wondering if it would work for this situation:
I have a file in the format of:
var1=something
var2=somethingelse...
I tried using:
fscanf(f,"%s=%s\r\n",szVar ,szVal);
That didn't work since szVar got filled with the entire line. Can scanf do this, or do I need to do the parsing myself?
I have a file in the format of:
var1=something
var2=somethingelse...
I tried using:
fscanf(f,"%s=%s\r\n",szVar
That didn't work since szVar got filled with the entire line. Can scanf do this, or do I need to do the parsing myself?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER