如何获取大容量文本文件中的行数? [英] How to get the number of line in the large capacity text file?

查看:220
本文介绍了如何获取大容量文本文件中的行数?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用有关内存映射文件的知识,但是文件大小超过4G.

你最好给我一个例子.我遇到了麻烦,需要您的帮助,谢谢!

I want to use the knowledge about Memory-Mapped File,but the filesize is more than 4G.

You should better give me a example. I''m in trouble,I need your help, Thank you!

推荐答案

我认为这些链接将为您提供帮助:

http://www.cplusplus.com/forum/beginner/43837/ [ http://stackoverflow.com/questions/3482064/counting-文本文件中的行数 [
I think these links will help you:

http://www.cplusplus.com/forum/beginner/43837/[^]
and
http://stackoverflow.com/questions/3482064/counting-the-number-of-lines-in-a-text-file[^]


这篇关于如何获取大容量文本文件中的行数?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆