Yes, a java app can read and print any file. The output may not be formatted as you'd hope for, it would depend if the programmer has the rules for formatting the content of the file.
so How would I do this?
Read some of it, print it, read some more, print some more.
If you need some code written, hire a programmer.
If you need help with your code, please ask specific questions about what you are having problems with.
Ok, I guess my question wasnt clear.
I am referring to printing to a physical printer.
Let's say I have a file on my C: drive called MyFile.doc, and I want to (from within my Java Swing application) have that file sent to the printer.
Can that be done.
Yes, you can print on paper with a Java program.