Managed C ++. There is data: data groups and in each group integer data. For example: Plant-> 5 tables 4 chairs 2 cabinets Office-> 10 tables 8 chairs 3 cabinets
What is the best way to organize the storage of this data, the subsequent writing to a file and the possibility of reading in the future in the same ordered list? Those. Let's say there will be a list of groups (office, factory) in a comboBox, and when choosing, we received data on the number of chairs, cabinets from a saved file.
I remembered where I had a hitch, why I didn’t take structures right away. Data: office, factory dynamic. I do not know how many of these places will be. How to be?