Source Code เพื่อ การศึกษา
j0605.java
j0605
// :::: โปรแกรมลำดับที่ 25 // เขียนข้อมูล 10 บรรทัดลงไปในแฟ้ม tmp.txt import java.io.*; class j0605 { public static void main (String args[]) throws IOException { FileOutputStream fout = new FileOutputStream("tmp.txt"); for(int i=1;i<=10;i++) { fout.write(i+47); fout.write(13); fout.write(10); } fout.close(); } }
ปรับปรุงโปรแกรม source.pl : 2553-03-20