File Handling

i want to create file in my C drive but this command doesnt works

ofstream fout;
fout.open("C:\ my new file");
You need to use \\ since the \ character is the escape character.
oh yea ... thanks buddy!!!
and how can i remove and rename my file!!!
send me function please!!!
Topic archived. No new replies allowed.