码迷,mamicode.com
首页 >  
搜索关键字:java;文件名自动生成;    ( 1个结果
Java中动态生成当前日期的文件
1.Java中动态生成当前日期的文件名称并且将控制台的输出信息输入到文件中 publicstaticvoidSaveClonseToFile()throwsIOException,FileNotFoundException{ Filef=newFile(getCurrentDateFileName()+".txt"); f.createNewFile(); FileOutputStreamfileOutputStream=newFileOutpu..
分类:编程语言   时间:2017-09-16 11:55:45    阅读次数:122
1条  
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!