Now I have an array of 2d strings containing my data:
//...find number of rows needed... string[,] data = new string[totalRows, 12]; //row / column
It works. BUT now, when I want to add more functionality to my program, this is no longer in my interests, since concatenating 2-dimensional arrays, while executable, opens up other problems: until that moment, I stored the number of lines in a class variable, so as I needed to support two at once. Perhaps I know that the columns will always be the same, and I could divide the length by getting the rows and writing a method to combine them.
I get the feeling that there is a better way to do this. My knowledge of the βnewβ things is missing, but I am sure that one of them is better suited for the bill than the others. Therefore, before I jump in and create a List<List<String>> data = new List<List<String>>(); or something else as strange to watch, I want the opinions of others to be more experienced.
I do not need the functions of sorting, deleting, pasting, etc. I just need to store data; and now I need to be able to relatively easily switch data += data2 - something to this effect, one way or another. data.Length (giving only the outer length) is also very useful.
What is the best way to do this?
Please let me know if you would like more information. Thanks.
Additional information based on answers:
The data is mainly a spreadsheet format. i.e.
[['1234-56789-12345', 'screwdriver', '', 'ea', '1', '', '', '', '', '', '', ''], [['1234-56789-54321', 'wrench', '', 'ea', '1', '2', '3', '', '', '', '', '']]
I don't want to deal with figuring out what the information describes - I don't care. I need a place in relation to everything else.
Additional Information:
Use - as a storage tank between one xml file and another. I just realized that these xlst things might be another solution to my original problem, but, yes. Maybe in a different life. (Everything works .. as I said, adding functionality. If it works, why break it?)