Code:
void Lines::load(string filename)
{
    string lines;

    ifstream inFile;
    inFile.open(filename.stx);
    if (!inFile)
    {
        cout<<"error";
    }
    while (!inFile.eof())
    {
        while(inFile.eof() != '/0')
        {
            getline(inFile,lines);
        }
    }
i have a function : load(string filename)
which performs the read file function the "string filename" is the name of the file i input thought "cin", but the function can't seem to be working properly in inFile.open(filename.stx).

any help would be appreciated