OutputStreamReader的使用方法
作者:互联网
OutputStreamReader的使用方法
@Test
public void out()throws IOException{
String path = "D:\\SDSD.txt";
BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(path),"gbk"));
bw.write("the north face小落叶真式越看越有味啊");
if(bw != null)bw.close();
System.out.println("gbk");
}
标签:OutputStreamReader,BufferedWriter,bw,使用,new,path,方法,out 来源: https://blog.csdn.net/NJUSTZJC/article/details/121315069