Java??IO?????????
???????????? ???????[ 2014/4/17 10:17:43 ] ????????Java IO??
??????????????
????1?????????
???????????InputStream Reader
????д??????OutPutStream Writer
????2???????????????
???????????InputStream OutputStream
???????????Reader Writer
?????????????????
?????????????????豸??????????ж????????????ó?????д????????????д??????????????????????
????????豸???????????????
??????????????д????????λ??????????????д???κ?????????????????????д????????λ??????????
?????????
????д?????????????????????????д??????????????????????????????????????д???????????Ч????????
????????????????????????????????д??
???????????ж?д???????????(?????IO????п??????IO?????????????????????)
???????????
????FileOutputStream fos = new FileOutputStream("D://xxx.xxx");
????fos.write("dsfdsf".getBytes());//д?????????
????fos.close(); //?????????????????????????????????Flush
????FileInputStream fis = new FileInputStream("D://xxx.xxx");
????fis.read(); //?????????
????fis.close();
???????????
????FileWriter fw = new FileWriter("D:\xxx.txt");
????fw.write("sdfsdfsdf");//???????д???????
????fw.flush(); //д??????Flush??????????д??????豸
????fw.close(); //close????????Flush??
????FileReader fr = new FileReader("D:\xxx.txt");
????fr.read(char[] ch);//?????????????????????
????fr.close();
????????????
???????????????????????????????
????1????????????????????????
????InputStreamReader isr = new InputStreamReader(new FileInputStream("xxx.xxx"));
????2?????????????????????????
????OutputStreamWriter osw = new OutputStreamWriter(new FileOutputStream("xx.xxx"));
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11