How do I load a user defined file?

I am working on a project in C++ and the specifications are that I load a file specified by the user. In this file will be thousands of random words. How do I do that?
File locations are accepted as strings. Have the user enter a string that is the location of the file, then fopen(userInput)
Topic archived. No new replies allowed.