LMuadDIb
asked on
saving arrays to dat
hey all :)
I need advice, I have been looking at several ways to save arrays of records to a file and I was wondering whats the best way.
I need to save several arrays of records ( static & dynamic), and the hard part is that dynamic arrays can have varying lengths,
and most of them will exceed 255 characters. Which means I cant use "file of TRecord" to save the records. And I want to
save all my array records (6-8 of them) to one file.
Now I have looked into TFileStream and writing the individual records out manually. And its ok, but tedious.
And TStringLists, which I can use... but how do I save them out in a non text format? I dont want users to be able to
read (or change) anything in the file. Anyway to change that?
thanx for your time...
I need advice, I have been looking at several ways to save arrays of records to a file and I was wondering whats the best way.
I need to save several arrays of records ( static & dynamic), and the hard part is that dynamic arrays can have varying lengths,
and most of them will exceed 255 characters. Which means I cant use "file of TRecord" to save the records. And I want to
save all my array records (6-8 of them) to one file.
Now I have looked into TFileStream and writing the individual records out manually. And its ok, but tedious.
And TStringLists, which I can use... but how do I save them out in a non text format? I dont want users to be able to
read (or change) anything in the file. Anyway to change that?
thanx for your time...
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
DarkCore, I didnt even think about xml (which I have never used) but Im gonna check that out thanx
and lmikle, thanx for the code