saving a records containing a member of type string to a file (Delphi, Windows)

后端 未结 5 1722
情书的邮戳
情书的邮戳 2020-12-22 06:13

I have a record that looks similar to:

type
  TNote = record
    Title : string;
    Note  : string;
    Index : integer;
  end;

Simple. Th

5条回答
  •  眼角桃花
    2020-12-22 06:59

    You could work with two different files, one that just stores the strings in some convenient way, the other stores the records with a reference to the strings. That way you will still have a file of records for easy access even though you don't know the size of the actual content.

    (Sorry no code.)

提交回复
热议问题