How Can I Efficiently Read The FIrst Few Lines of Many Files in Delphi

后端 未结 5 2065
清歌不尽
清歌不尽 2020-12-15 12:43

I have a \"Find Files\" function in my program that will find text files with the .ged suffix that my program reads. I display the found results in an explorer-like window t

5条回答
  •  时光取名叫无心
    2020-12-15 13:02

    Use TFileStream and with Read method read number of bytes needed. Here is the example of reading bitmap info that is also stored on begining of the file.

    http://www.delphidabbler.com/tips/19

提交回复
热议问题