單項選擇題

想要實現(xiàn)使用緩沖流創(chuàng)建輸出流,并實現(xiàn)向文件中追加數(shù)據(jù)的功能的方式是()

A.BufferedOutputStreambis=newBufferedOutputStream(newFileOutputStream("c:\\demo.txt"),true);
B.BufferedOutputStreambis=newBufferedOutputStream(newFileOutputStream("c:\\demo.txt",true);
C.BufferedOutputStreambis=newBufferedOutputStream(newFileOutputStream("c:\\demo.txt",false));
D.BufferedOutputStreambis=newBufferedOutputStream(newFileOutputStream("c:\\demo.txt"),false);

微信掃碼免費搜題