标签:rgs stack int except writer public 转换流 dem flush
import java.io.*; public class TestOutputStreamWriter{ public static void main(String[] args){ try{ OutputStreamWriter osw = new OutputStreamWriter(new FileOutputStream("D:/Java/TestOutputStreamWriter/test.txt",true),"GBK"); osw.write("我是新增内容"); osw.flush(); osw.close(); } catch(IOException e){ e.printStackTrace(); } } }
测试OutputStreamWriter的demo(转换流)
标签:rgs stack int except writer public 转换流 dem flush
原文地址:https://www.cnblogs.com/yxfyg/p/12400808.html