I want to print out the contents of a file called statement.txt... How would i go about doing this?
Any help would be appreciated!
Printable View
I want to print out the contents of a file called statement.txt... How would i go about doing this?
Any help would be appreciated!
Read the file
Java IO
Parse as needed, then figure out how to represent the data graphically for printing (if just plain text, one could use one of any number of JTextComponent's available in Swing), then see the following:
Lesson: Printing (The Java™ Tutorials > 2D Graphics)