PtsPBOGenapsimpan
try{
BufferedWriter out = new BufferedWriter(new FileWriter("jumlahhari.txt"));
out.write(hasilJumlahHari.getText());
JOptionPane.showMessageDialog(null, "Berhasil di simpan dalam file");
}catch (Exception e){
System.err.println("Error: " + e.getMessage());
}
0 Comments:
Posting Komentar