File Truy Cập Ngẫu Nhiên (Random Access Files)
Return; } // read bytes until EOF is encountered do{ i = fin.read(); if(i != -1) System.out.print((char) i); } while(i != -1); fin.close(); } } Kết quả thực thi chương trình: 5.3.3.2. Ghi dữ liệu xuống file Mở một file để ghi dữ liệu FileOutputStream (String fileName) ...