FileInputSteam和FileOutputStream

来源:互联网 发布:总后勤部职工数据库 编辑:程序博客网 时间:2024/05/29 15:21

fis = new FileInputStream("records.txt");    如果未找到文件,就抛出异常

 

fos = new FileOutputStream("backup.txt",true);  //true表示追加    ,如果未找到该文件就创建该文件。

原创粉丝点击