Hello, I haven't done any work with reading or writing from/to files in C++, I think we did some C in school but its all a little fuzzy at this point.
What I need to do is store the values for a couple different functions in a text file, have the function find its section and set the variables accordingly. Having a different text file for each function would probably be the easiest way but having one text file would easier when anyone else goes to use the program.
For example, some pseudo code, if I had this:
void setSOT(text file){
searches for SOT section, sets variables
}
And if this were my text file
SOT
bit 1 = 1
bit 2 = 0
.
.
.
bit 7 = 1
EOR
bit 1 = 1
.
.
.
etc
How would I go about only parsing that one section of the text file that pertains to the SOT function. Or if you could simply point me to a relevant tutorial :D I've been searching but have yet to find one.
Thanks