试题详情
- 单项选择题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
关注下方微信公众号,在线模考后查看
热门试题