Hi, I have a question that should be simple. I'm working on a small program for an introductory class. The program takes a string and prints to a file with Scanner and PrintWriter. I only need to print the contents of the file in the command screen before closing the program. The textbook says it can be done with FileReader and FileWriter. Here is my guess:
But it doesn't work. How do I print the contents of the file?