So for this project I am given a text file that I need to hard code and read. Usually we have to ask the user to input the text file but this time there is only 1 text file. How would I open a text file automatically when the program is ran?
If you just put in the file name, the the program will look in the current folder, so instead of hard coding the path, the program would have to be ran from the folder with the text file.