DataStream := TFileStream.Create('vccmem.dat', fmCreate);
MakeDate := FormatDateTime('mmmm d, yyyy',date);
DataStream.Write(MakeDate, SizeOf(MakeDate));
RCount := DataArray.Size;
DataStream.Write(RCount,SizeOf(RCount));
for q := 1 to DataArray.Size do
begin
Application.ProcessMessages;
ARecord := DataArray[q] as TNameRecord;
DataStream.Write(ARecord.id, SizeOf(ARecord.id));
DataStream.Write(ARecord.first_name, SizeOf(ARecord.first_name));
DataStream.Write(ARecord.last_name, SizeOf(ARecord.last_name));
DataStream.Write(ARecord.title, SizeOf(ARecord.title));
DataStream.Write(ARecord.address, SizeOf(ARecord.address));
DataStream.Write(ARecord.city, SizeOf(ARecord.city));
DataStream.Write(ARecord.state, SizeOf(ARecord.state));
DataStream.Write(ARecord.zip, SizeOf(ARecord.zip));
DataStream.Write(ARecord.phone, SizeOf(ARecord.phone));
DataStream.Write(ARecord.fax, SizeOf(ARecord.fax));
DataStream.Write(ARecord.e_mail, SizeOf(ARecord.e_mail));
end;
DataStream.Destroy;