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");
    }
上一篇:2021-10-11


下一篇:uniapp小程序分包