Make constant available command

Pages: 12
Whoops! Thanks.
But i have the prolbem wiht this
string filename = "C:\Users\Tim\Desktop\Folder\Documents\Programing\C++\New fold.txt";
ifstream myfile( filename.c_str() );
getline(myfile, firstline);
getline(myfile, secondline);
it says incomplete universal charater \u

Note: I changed the filename and it still didint work.
Last edited on
You're using backslashes.

Use forward slashes. A single backslash is an escape character.
Ohh cool thanks works thanks everyone! I might ask more questiosn here so ill keep it unsolved unless it should be!
Topic archived. No new replies allowed.
Pages: 12