Page 1 of 1

การเขียนส่งข้อมูล ไปยัง Parallel Port โดยตรง

Posted: 05 Feb 2014, 16:43
by brid.surapol

Code: Select all

FileOutputStream fo = new FileOutputStream("/dev/lp0");
PrintStream ps = new PrintStream(fo);
ps.println("Hello World.");
ps.flush();
ps.close();
fo.close();