File Handling

May 12, 2011 at 11:27pm
i want to create file in my C drive but this command doesnt works

ofstream fout;
fout.open("C:\ my new file");
May 13, 2011 at 2:39am
You need to use \\ since the \ character is the escape character.
May 13, 2011 at 5:49am
oh yea ... thanks buddy!!!
May 13, 2011 at 5:51am
and how can i remove and rename my file!!!
send me function please!!!
Topic archived. No new replies allowed.