I'm inputing data from a txt. file using inFile.open(filename.c_str());. Everything works fine, but I tried inputing the file without c_str(), just inFile.open(filename); and it worked fine as well. I initialized my filename as a string and was wondering why it worked without c_str(). Thx