Hello.
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
b: 2
and other stuff in between the values i want.
d: 8
and so on
a: 1
so i have a pretty much jumbled file
c: 9
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