Open folder browser for storing txt file generated in c++

Hello! My question is so simple, but i haven’t realised how to implement it. At the end of the game, i want to have an option for the user to store some data generated in c++ into a txt file, so this program must have an option in which appears a folder browser so the user could select the directory in which store the named file. Someone knows how to do that?