首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > 编程 >

写资料的代码

2012-09-20 
写文件的代码public static void main(String[] args) throws IOException {File f2 new File(D:\\A.tx

写文件的代码
public static void main(String[] args) throws IOException {
        File f2 = new File("D:\\A.txt");
        BufferedWriter output = new BufferedWriter(new FileWriter(f2));

        output.write("nihao你好");
        output.close();
       
}

热点排行