使用writeInt()向一个txt文件中写数据时,打开之后问是乱码?如何解决?
OutputStreamWriter write = new OutputStreamWriter(new FileOutputStream(f),"gbk");
InputStreamReader read = new InputStreamReader(new FileInputStream(f),"gbk");