我在 Delphi 2009 中有以下的结构:
type
IndiReportIndi = record
IndiName: string;
NameNum: integer;
ReportIndiName: string;
end;
var
XRefList: array of IndiReportIndi;
这里的XRefList是一个动态数组。
我想将XRefList保存到一个FileStream中。我该如何做,并且包括所有IndiName和ReportIndiName字符串,以便在以后从该FileStream加载时可以检索它们?