Date added/modified: 21 Nov 1999
If you need to read text files in your applications, you might be using the standard text file function "Readln" in your code as given in the Delphi help file. Have you ever tested the speed? Well, as per my experience, these operations were slow and even using a "SetTextBuf" to specify a bigger text buffer didn't help. Finally, I changed my code to read text files as untyped files with a record size of 1, and then used BlockRead to read into a bigger buffer (the same one that I tried with SetTextBuf). It made a big difference.
You can try it on your own. Basically, you need the sophistication of Readln only if you want to analyze your text file line by line while reading. If you are just reading to display in some control, untyped method works much faster. Of course, this is my opinion based on my own testing. If you are an expert and know better, I will appreciate an email giving a hint on why SetTextBuf doesn't work as well as untyped reading.