日期:2014-05-18  浏览次数:20690 次

.net切分15G文本文件如何快速
今天有位朋友突然问到,使用.net如何切分15G文本文件,而且很高效,期望得到详解,最好有代码!

------解决方案--------------------
基本上就是读取/写入吧,瓶颈是磁盘读写,因此多线程神马的都没有用。

参考下面的讨论:

http://stackoverflow.com/questions/3967541/how-to-split-large-files-efficiently

http://designingefficientsoftware.wordpress.com/2011/03/03/efficient-file-io-from-csharp/

http://stackoverflow.com/questions/955911/how-to-write-super-fast-file-streaming-code-in-c
------解决方案--------------------
添点钱,换个高速硬盘。