ghell
11-26-2004, 06:18 PM
i can use
ifstream myFile("test.txt");
but not
string str = "test.txt";
ifstream myFile(str);
im trying to use a function so i sorta need it to get it from a vairable, is there any way to do this?
ifstream myFile("test.txt");
but not
string str = "test.txt";
ifstream myFile(str);
im trying to use a function so i sorta need it to get it from a vairable, is there any way to do this?