Different files

How do you get a file (get("text.txt")), but the file isn't defined in the programme but rather by user input. Example:
get(x) //doesn't work for me.x is a string.
Last edited on
You can fetch input from a user to populate a string.
1
2
string x;
cin >> x;


What is get supposed to do? It's not a standard C++ function.
Last edited on
Topic archived. No new replies allowed.