会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
extendswind
博客园
首页
新随笔
联系
管理
2017年11月28日
scala 递归读取文件夹下所有的指定后缀的文件
摘要: ``` scala def getFile(file:File): Array[File] ={ val files = file.listFiles().filter(! _.isDirectory) .filter(t => t.toString.endsWith(".txt") || t.toString.endsWith(".md")) //此处读取.txt and .md文件...
阅读全文
posted @ 2017-11-28 21:48 extendswind
阅读(2292)
评论(0)
推荐(0)
编辑
公告