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?
Another question: why does the font size vary between code snippets? I'm copying from the same file, but the font size is too small in some of the posts...
Maximilian Xavier Stocker
Ranch Hand
Joined: Sep 20, 2005
Posts: 381
posted
0
Originally posted by Jesse Crockett: Another question: why does the font size vary between code snippets? I'm copying from the same file, but the font size is too small in some of the posts...
I am not sure what you mean. You mean you see different font sizes in posts here? I am not sure how that is even possible and it sounds like a buggy browser to me.