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++ - Is it possible to compile a VST on linux? -

java - Output of Eclipse is rubbish -

jquery - Confused with JSON data and normal data in Django ajax request -