Code:
#include <string>

using std::string;
Just use chosenfile then