การเขียนส่งข้อมูล ไปยัง Parallel Port โดยตรง
Posted: 05 Feb 2014, 16:43
Code: Select all
FileOutputStream fo = new FileOutputStream("/dev/lp0");
PrintStream ps = new PrintStream(fo);
ps.println("Hello World.");
ps.flush();
ps.close();
fo.close();