import java.io.*;
public class Test {
public static void main(String args[]) {
try {
String s="ABCDE ";
byte b[]=s.getBytes();
FileOutputStream file=
new FileOutputStream("test.txt",true);
file.write(b);
file.close();
}
catch(IOException e) {
System.out.println(e.toString());
}
}
}
|
|