Ability to more flexibly define the path to a text file

This allows a user to use tilde expansion or simply the file name if the text file is in the user working directory.