java - Can i print using FIleOutputStream on a printer -


can print using fileoutputstream on printer ?

(i targeting windows platform particularly win32) example :

fileoutputstream fos = new fileoutputstream("lpt1"); fos.print("testing testing testing testing..."); 

will these 2 lines able print on printer ?

if no , please suggest method.

i think printing lesson of java tutorial trail should out. please post specific questions if doesn't work. another link came across shows how "print" text file, worth try.


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -