java,php,asp.net,linux,javascript,mysql,mssql,oracle,编程

写入日志

转载请注明:http://www.pmjava.com/Article/ShowInfo.asp?ID=56554
 public static boolean print(String filePath,String code) {
 
try {
   File tofile
=new File(filePath);
   FileWriter fw
=new FileWriter(tofile,true);
   BufferedWriter bw
=new BufferedWriter(fw);
   PrintWriter pw
=new PrintWriter(bw);
  
   System.out.println(getDate()
+":"+code);
   pw.println(getDate()
+":"+code);
   pw.close();
   bw.close();
   fw.close();
  
return true;
  }
catch (IOException e) {
  
return false;
  }
}

posted on 2009-06-10 21:14 rrong_m 阅读(92) 评论(0)  编辑  收藏

<2024年5月>
2829301234
567891011
12131415161718
19202122232425
2627282930311
2345678

导航

统计

常用链接

随笔档案

文章分类

文章档案

java编程

搜索

积分与排名

最新评论

阅读排行榜

评论排行榜