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-10-10 19:40:11

IO_Writer的相关文章