Make constant available command

Pages: 12
May 18, 2012 at 2:18am
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 May 18, 2012 at 2:20am
May 18, 2012 at 2:22am
You're using backslashes.

Use forward slashes. A single backslash is an escape character.
May 18, 2012 at 2:32am
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