下面哪个选项可以将“hello”字符写入文件file.txt的末尾?( )。
A. OutputStream out= new FileOutputStream ("file.txt");Out.writeBytes ("hello");
B. OutputStream os= new FileOutputStream ("file.txt", true);DataOutputStream out = new DataOutputStream(os);out.writeBytes ("hello");
C. OutputStream os= new FileOutputStream ("file.txt");DataOutputStream out = new DataOutputStream(os);out.writeBytes ("hello");
D. OutputStream os= new OutputStream ("file.txt", true);DataOutputStream out = new DataOutputStream(os);out.writeBytes ("hello");