如题,谢谢!
文件比较大,不能全部同时读入内存寻找比如文件中内容中有:
.............................
......number of aaa: 100.....
.............................
......number of aaa: 300.....我需要读到所有的number of aaa:后面的数据帮忙看看,谢谢
文件比较大,不能全部同时读入内存寻找比如文件中内容中有:
.............................
......number of aaa: 100.....
.............................
......number of aaa: 300.....我需要读到所有的number of aaa:后面的数据帮忙看看,谢谢
但我也不知道文件里面的内容有没有这么整齐,要是成了
.............................
...................number of
aaa: 100....................
number of aaa: 100..........
这样又该怎么办呢?
不整齐只能一个一个字节的读取