How do you manage to enter the entire filepath of a file containing a?
To get a line in c++, follow this getline (string) - C++ Reference. Anyway, there is a reason people name their folders this_way. If you are asking because you want to write some scripts to use personally, just use the underscore formate for naming your folders, it will make your life easier.