联合开发网   搜索   要求与建议
                登陆    注册
排序按匹配   按投票   按下载次数   按上传日期
按分类查找All 文件操作(1) 
按平台查找All C/C++(1) 

[文件操作] wenjian

一个文件夹下有若干个文本文件,文件名无规律。读取每个文件的内容,提取出文件内容中的时间信息。如果有时间信息,则以时间信息重命名文件。 例如: Hello.txt的文本内容为:中国天气网讯 据中央气象台消息,今年第11号超强台风“凡亚比”于2010年9月19日上午8时减弱为强台风,随后于9时前后在我国台湾省花莲县丰滨乡附近沿海登陆。登陆时中心风力15级,50米/秒,中心最低气压940百帕。 则可将文件重命名为2010-9-19.txt
A folder with a number of text files, the file name without the law. Read the contents of each file, extract the contents of the file in the time information. If there is time information, places to rename a file time information. For example: Hello.txt the text reads: According to China Central Meteorological Station weather, Reuters news, No. 11 this year, super typhoon " Where Abigail" was at 8:00 on September 19, 2010 weakened into a typhoon, and then in 9:00 Taiwan Province of China before and after Fongbin Township, Hualien County, near the coastal landing. Centre wind landing 15, 50 m/s, minimum central pressure 940 hPa. You can rename the file as 2010-9-19.txt (2010-10-17, C/C++, 169KB, 下载16次)

http://www.pudn.com/Download/item/id/1319872.html
总计:1