Link to home
Start Free TrialLog in
Avatar of chengjian
chengjian

asked on

How to save a dym array to a file and read it out?

Hi

I have a dyman array, it contains a record

//Decleration
  tagEVENTMSG = packed record
    message: UINT;
    paramL: UINT;
    paramH: UINT;
    time: DWORD;
    hwnd: HWND;
  end;
  TEventMsg = tagEVENTMSG;
  {$EXTERNALSYM EVENTMSG}
  EVENTMSG = tagEVENTMSG;
EventArr:array of EVENTMSG;
//End of declearation


Now I want to mathods, code is required, thanx:

Savetofile(fn:String);
Loadfromfile(fn:String);

if you have time, give a solusion for TFileStream. although other is acceptable.

Thanx
ASKER CERTIFIED SOLUTION
Avatar of babeoma
babeoma

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of CleanupPing
CleanupPing

chengjian:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.