A: 

you need to put actualReader.close call in else, as the file has open handles and it is not available for open again

Naveed
+1  A: 

I don't know what input you are giving to cin, but be aware that cin will stop at the first whitespace character it encounters. For example, if you give as input the following:

C:\Program Files\directory

then aRDataLog would have the value C:\Program .

In order to read the whole line, you could use getline.

Check also this post.

Alex
+1. Also worth noting that `std::cin` doesn't know or respect the normal way to delimit a path (with "s).
Billy ONeal
Thank you! Cin was stopping at whitespace for my `visual studio 2008` directory. Thank you very much!
Alex
+1  A: 

While I'm not exactly sure what the issue is here, it might be a good idea to print what you're getting from std::cin to ensure you're getting what you're expecting.

Billy ONeal