文件排列后是这样的
文件夹
name=jsp2html.log
name=jsp2html.log.1
name=jsp2html.log.10
name=jsp2html.log.11
name=jsp2html.log.12
name=jsp2html.log.13
name=jsp2html.log.14
name=jsp2html.log.15
name=jsp2html.log.16
name=jsp2html.log.17
name=jsp2html.log.18
name=jsp2html.log.19
name=jsp2html.log.2
name=jsp2html.log.20
name=jsp2html.log.21
name=jsp2html.log.22
name=jsp2html.log.23
name=jsp2html.log.24
name=jsp2html.log.25
name=jsp2html.log.3
name=jsp2html.log.4
name=jsp2html.log.5
name=jsp2html.log.6
name=jsp2html.log.7
name=jsp2html.log.8
后缀是数字,我想按照数字大小排序,如下排序:
文件夹
name=jsp2html.log
name=jsp2html.log.1
name=jsp2html.log.2
name=jsp2html.log.3
name=jsp2html.log.4
name=jsp2html.log.5
name=jsp2html.log.6
name=jsp2html.log.7
name=jsp2html.log.8
name=jsp2html.log.10
name=jsp2html.log.11
name=jsp2html.log.12
name=jsp2html.log.13
name=jsp2html.log.14
name=jsp2html.log.15
排序完后我要对文件做读取操作,
有没有什么简便的方法?
急。。。