program cannot find the directory.

Pages: 12
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.
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
path.c_str()
Last edited on
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.
closed account (LAfSLyTq)
it works for any path that doesnt have spaces in it. why is this?

my code was posted in the beginning
Because operator>> only reads to the next whitespace. You were told so before.
closed account (LAfSLyTq)
how do i change that?
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
Topic archived. No new replies allowed.
Pages: 12