How do I get multiple lines to be stored in my one string if I don't know how many lines there are? Here is my current code... but I know the != EOF part is wrong.
Help please?Code:try { ifstream b_file(fileName.c_str()); while(c != EOF) { getline(b_file, c, '\n'); a += c; } if(a.compare("") == 0) { throw "That file does not exist.";} b_file.close();