Thema: Delphi mapped file

Einzelnen Beitrag anzeigen

Klaus01

Registriert seit: 30. Nov 2005
Ort: München
5.771 Beiträge
 
Delphi 10.4 Sydney
 
#4

Re: mapped file

  Alt 8. Apr 2008, 07:54
Good morning,

why not laoding the small file into a StringList
und running through the huge file line by line and
comparing the current line with the content of the StringList.

So the huge file has only be read by once and the
small file is located within the memory.

For reading the file line by line,
you may want to use the "old Pascal Style"
AssigneFile, readLn etc.
or the newer functions like
FileOpen, FileRead etc..

Have a nice day
Klaus
Klaus
  Mit Zitat antworten Zitat