Watch, Follow, &
Connect with Us

ID: 27692, Fast counting lines of text files

by Uffe Kousgaard Email: Anonymous


3 different methods for counting lines of text files: Readln, TStringList and TFileStream
Download Details
CDN Login Required to Download. (You will be redirected to the login page if you click on the Download Link)
To download this, you must have registered:
A free membership

For Delphi, Version 5.0  to 13.0 270 downloads
Copyright: No significant restrictions


Size: 1,861 bytes
Updated on Sat, 01 May 2010 05:13:30 GMT
Originally uploaded on Fri, 30 Apr 2010 01:52:07 GMT
SHA1 Hash: 6FA11B3CF2DD9554CFAAC61FC4759F11760678EF
MD5 Hash: 352BEB781C4D5912C5A1E55FEEA88B0E

    Explore the files in this upload

Description
3 different methods for counting lines of text files: Readln, TStringList and TFileStream. Tested with D5, D7, D2007 and D2010.

Conclusion is the TFileStream is far the fastest, but less flexible if you have to manage several different types of text files (BOM, Unix etc.)

   Latest Comments  View All Add New

Move mouse over comment to see the full text

Server Response from: ETNACDC02