-
Save Data problem
Hello Everyone
I was programming something, where I used a UDT with arrays in it. I used to save that just by saving the UDT as binary. Now I want to replace the arrays through collections.
Does anyone know of some good ways to save out of classes, and just as important to load it again??
Thanks
-
I'd stick with the arrays ...
-
hm I am thinking about that, but I really could need the advantages the collections have. Of course I could write own functions to use my arrays like a collection, but that add and remove and key and index would be so helpful in my app.
Help still needed
-
Well why would collections be of more use to you ?
You could use dynamic arrays instead like.
-
Well what I need is to remove entries and be able to save and load that again.
-
Well, you could put data from collections into arrays, then save the arrays to a file. For loading, load the data into arrays and then put it into collections...
-
yeah that is what I did now. Of course it works, but I really hoped there would be a more sophisticated method of saving the collection. So for most things arrays still seem to be the first choice. I think I would have even saved time by writing some functions for arrays, to emulate the features I wanted from the collection.
If anyone knows an elegant way, please tell me
Thanks to everyone.
Misanthrop
-
Personally I would stick with arrays.
There's nothing, or very little, they cant do !