Ok I need to know how to set my class to read only the values after the = sign.
Here's my class so far.
#include <iostream>
#include <string>
#include <fstream>
using namespace std;
class Config
{
int pos;
string search;
public:
char * confname;
void configsearch ()
{
fstream filename (confname);
while (!filename.eof())
{
badsearch:
getline (filename,search);
pos = search.find("#");
if (pos != -1)
{
goto badsearch;
}
cout << search;
pos = search.find("=");
if (pos != -1)
{
cout << "\n" << pos;
}
cout << "\n";
}
};
};