(1) ; //导包public class FileStreamTest {
public static void main(String[] args) {
try {
(2); //声明对象fos
fos = new FileOutputStream("FileStreamTest.txt");
String data = "今天是圣诞节";
(3) //将date转化为字节数组
(4) //将outDate写入文件
(5) ; //关闭fos
} catch (IOException e) {
e.printStackTrace();
}
}
}