如果要向文件file.txt中添加数据,应如何构建输出流()。
①
OutputStream out=new FileOutputStream(“file.txt”);
②
OutputStream out=new FileOutputStream(“file.txt”, “append”);
③
FileOutputStream out=new FileOutputStream(“file.txt”, true);
④
FileOutputStream out=new FileOutputStream(new file(“file.txt”));