class File3{
public static void main(String[] args) {
File f;
f = new File("Latihan.txt");
try{
OutputStream fs = new FileOutputStream(f);
String s = "ini adalah file latihan";
byte b[] = new byte[s.length()];
for(int i=0;i
}
fs.write(b, 0, s.length());
fs.close();
}catch(Exception e){
}
}
}