Suppose you want to allow the user to specify a file to open on the command line. How can this be achieved if the user will enter data such as:
/User/desktop/input.txt
How can I then convert this directory into something that the program actually opens/reads?