sloppycode.net
Optimum textfile reading in C#
Reading ascii text files fast.





This example from 2005 reads an 80mb text file in 2 seconds on an AMD 64 2.2ghz, 1gb ram, SATA 10k rpm/s machine (a fast machine in 2005!). This example will be expanded upon in the coming months to include things I discovered from the 'Statmagic' library I created (a log reader API).

Note: the method listed will not reliably read binary files in (or infact unicode), as it uses a char array not a byte array.


› Home
› C#
› Snippets
› Articles
› Tools
› Taglines
› ASP
› Dictionary Object
› FSO
› Unix cheat sheet
› Gaming
› CSS
› Yak
› Umbraco
› About
› Contact
› Privacy
› Projects
› Search
› Sitemap





Buy on Amazon



Buy on Amazon



Buy on Amazon



Buy on Amazon