Running the program below will yelid an error saying the program file does not exist and in the line TestFile.open(name); it says that there is no matching function for call for the open method. This error is encountered in both the program i wrote below, and another example program from a textbook copied line for line into Eclipse. I am running Eclipse on Linux Mint 18.2 Cinnamon.
The issue goes away if i open a specific file rather than ask the user for a file name.