I need to print a text file (say e.g 'bar.txt') from a Java Source Code. Let's say I specify the name of the text file (e.g. 'bar.txt') in my Java Source Code and when I run the Java Code, it should print the text file in the printer. Can anybody tell me, what I need to do? Please specify a block of Code if possible... Thanks. Cheers! Ash :roll:
posted 14 years ago
it should print the text file in the printer.
You really mean a printer and not to System.out using System.out.println()?