import java.io.*;
public class Write {
public static void main(String[] args){
try{
BufferedWriter out=new BufferedWriter(new FileWriter("runoob.txt"));
out.write("java");
out.close();
System.out.println("文件创造成功!");
}catch(IOException e){
}
}
}
时间: 2024-10-08 19:51:12