读文件
File f = new File(fileName);
InputStreamReader read = new InputStreamReader(new FileInputStream(f),"utf-8");
BufferedReader reader=new BufferedReader(read);
写文件
File f = new File(fileName);
OutputStreamWriter write = new OutputStreamWriter(new FileOutputStream(f),"utf-8");
BufferedWriter writer=new BufferedWriter(write);