`
LotusStar
  • 浏览: 18726 次
  • 性别: Icon_minigender_1
  • 来自: 北京
文章分类
社区版块
存档分类
最新评论

如何写文件

阅读更多
try {
pw = new   PrintWriter(new   FileOutputStream("文件名"));
} catch (FileNotFoundException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}  
      
         pw.print(字符串);  
                                  
         pw.flush();
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics