saving arrays to dat
Posted on 2004-08-19
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...