首页 > 其他 > 详细

IO_Writer

时间:2016-08-01 19:05:38      阅读:213      评论:0      收藏:0      [点我收藏+]

  import java.io.*;

  public class Writer {
    public static void main(String [] args){
    FileWriter fw = null;

  try{
    fw=new FileWriter("1.txt");
    }catch(IOException e){
      e.toString();
    }
  try{
    fw.write("abcedfg1ert");
  }catch(IOException e){
    e.toString();
    }
  try{
    fw.close();
  }catch(IOException e){
    e.toString();
    }

  }
}

IO_Writer

原文:http://www.cnblogs.com/striver-lm/p/5726704.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!