I found out that even though I could see the file in file explorer at the file location, when I went to the command line there, and listed the directory, the file name was actually readFile.txt.txt. It was displayed as readFile.txt with text file type. I renamed the file and removed the extra .txt and it was found by the code. Thanks for all the help!