标签:main rgs java new 写入 style ack str catch
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){
}
}
}
标签:main rgs java new 写入 style ack str catch
原文地址:http://www.cnblogs.com/fujijill/p/6673618.html