yes, I am having troubles understanding fscanf
how can I use fscanf to read name, age, school ...etc
I understand if I use:
fscanf(fp, "%s", str);
it will read the whole line and store it...
Type: Posts; User: bojomojo
yes, I am having troubles understanding fscanf
how can I use fscanf to read name, age, school ...etc
I understand if I use:
fscanf(fp, "%s", str);
it will read the whole line and store it...
Hello,
If I have a text file with the format:
Name = MattPhilip
Age = 22
how can I use C to read from the file and fill in a structure?