What writes the text “ ” to the end of the file “file.txt”?()
- A、 OutputStream out= new FileOutputStream (“file.txt”); Out.writeBytes (“ /n”);
- B、 OutputStream os= new FileOutputStream (“file.txt”, true); DataOutputStream out = new DataOutputStream(os); out.writeBytes (“ /n”);
- C、 OutputStream os= new FileOutputStream (“file.txt”); DataOutputStream out = new DataOutputStream(os); out.writeBytes (“ /n”);
- D、 OutputStream os= new OutputStream (“file.txt”, true); DataOutputStream out = new DataOutputStream(os); out.writeBytes (“ /n”);
正确答案:B
答案解析:有
微信扫一扫手机做题