次,则文件test.txt 的内容是( )。
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());
}
}
}
A. ABCABC
B. ABCDE
C. Test
D. ABCDE ABCDE ABCDE
|
|