IO_Writer

  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();
    }

  }
}

时间: 2024-08-07 13:15:27

IO_Writer的相关文章