Original Post
Hi..I''m writing a console program for renaming some files and one of the inputs is a path to the directory where the files are located. The problem is that some of the directory names include blank spaces and when I read the variable is cut.
This is a part of my code...
char DirectoryName[MAX_PATH];
cin>>DirectoryName;
If I write for example "My Files" I only get "My". There is a way to fix this problem.
There must be an easy to work with blank spaces in a string, right?
Thanks.