Jun 6, 2012 at 7:12pm UTC
Normally you should open as C_string. Have you tried that?
how do i do that?
You should put your project on pause and work through a tutorial on the basics.
i already googled a tutorial before posting this, none of them worked and none of them did what i wanted.
Also, the program saves the files, but not to the directory needed, how do i fix this?
Last edited on Jun 6, 2012 at 7:13pm UTC
Jun 6, 2012 at 7:14pm UTC
path.c_str()
Last edited on Jun 6, 2012 at 7:25pm UTC
Jun 6, 2012 at 9:22pm UTC
Can you post the code you are using? The example I gave you works as long as the path you enter is correct, so either you have another issue in your code or you are entering the path wrong.
Jun 7, 2012 at 10:36am UTC
it works for any path that doesnt have spaces in it. why is this?
my code was posted in the beginning
Jun 7, 2012 at 3:06pm UTC
Because operator>> only reads to the next whitespace. You were told so before.
Jun 7, 2012 at 6:14pm UTC
Invader2010 wrote:how do i change that?
Use getline.
Have you tried the simplified example I posted, I know it works if the path is entered correctly.
Last edited on Jun 7, 2012 at 6:15pm UTC