program cannot find the directory.

Pages: 12
Jun 6, 2012 at 6:18pm
cin>>path; worked just as good.


You should put your project on pause and work through a tutorial on the basics.

And when you are using something like cin or getline, without knowing what it does, just look it up.
Jun 6, 2012 at 7:12pm
closed account (LAfSLyTq)
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
Jun 6, 2012 at 7:14pm
path.c_str()
Last edited on Jun 6, 2012 at 7:25pm
Jun 6, 2012 at 9:22pm
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
closed account (LAfSLyTq)
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
Because operator>> only reads to the next whitespace. You were told so before.
Jun 7, 2012 at 3:17pm
closed account (LAfSLyTq)
how do i change that?
Jun 7, 2012 at 6:14pm
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
Topic archived. No new replies allowed.
Pages: 12