It's a simple function and so far the only one giving me trouble, because strcmp needs a *char and not an actual string object. So how can I fix the code so that the first string argument in each of the strcmps doesn't give me a compile error?
Duoas: Your method worked for me when I was playing around with the filestream.open() command, but here it didn't work; however, bnbertha's method does work. I wonder why that is. I know my compiler is picky about a few things, such as main having to be an int and returning a value, but I haven't figured them all out yet.
If your compiler can't convert a std::string to a const char* using the standard methods ( c_str() or data() ), then it is time to update your compiler to the modern age and get a standard version of the STL.