I have a textfile as follows:
Value1 = windows
Value2 = Processor
Value3 = pwower plug
Right now i am retrieving complete file as follows:
std::ifstream myfile;
myfile.open( "D:\\values_user.txt", std::ios::in );
if( !(myfile.is_open()) )
{ std::cout << "Error Opening File";
std::exit(0); }
std::string firstline;
while( myfile.good() )
{
std::getline( myfile, firstline);
std::cout<< "\n" << firstline <<"\n";
}
I want to retrieve window, processor and pwower plug i.e. just want to have values after '='. So, suggest me how can i achieve this.