i want to get a folder path from user then the program will find the .txt files in this folder. how can i do this?
Not that I would advise allowing the user to enter a path because there is much room for error. I would use "std::getline()" for input of the path.
I find it a better choice to set the path in the program and just the user deal with a file name. Much less problem this way.
It is your program, so you can set it up anyway you like.
Hope that helps,