What am i missing here? How do I reinterpret the string to char for use with the fileobject.open? I'll slap out quick source for visual. ::baffled::
Code:#include <string> #include <iostream> #include <fstream> void LoadFile(string filename) { ifstream fileobject; fileobject.open(filename, ios::binary); } int main(int argc, char *argv[]) { string filename; filename = "test.txt"; LoadFile(filename); return 1; }