Hi, I am writing a program which needs to extract data from a file.
Sample file
Adder: 4, yes
Mult: 6,yes
....
i want to extract this info into a structure
{
Int interval (4 should be entered here)
bool pipeline (if yes then 1 else 0)
}
i read the file using the getline function and need to know a way i can search the string to extract the data from the string and store it in the structure above
string line;
if(Instfile.is_open())
{
while(!Instfile.eof())
{
LineNo++;
getline(Instfile,line);
}
}