Reading a file to variables
I want to make a program that can read a normal txt file and set certain lines to certain variables...
heres an example, say i have,
int a, b, c, d;
and then the file looks like this...
this is my file
and other stuff in between the values i want.
and so on
so i have a pretty much jumbled file
and then i want my code to go through the file and set variables according to the file, i.e b=2 etc... i was thinking of using strcmp to search the file a: b: etc..., but then how could i put the value thats directly after the target into the variable