Beginner programmer here so please keep (explanation of) answers as simple as possible. For an assignment we got a text file that contains a large amount of lines. Each line is a different 'Order' with an ordernumber, location, frequency (amount of times per week), and a few other arguments. Example:
18; New York; 3PWK; ***; ***;
etc
I've made it so that each line is read and stored in a string with
string[] orders = System.IO.File.ReadAllLines(@<filepath here>);
And I've made a separate class called "Order" which has a get+set for all the properties like ordernumber, etc.
Now I'm stuck on how to actually get the values in there. I know how string splitting works but not how I can make unique objects in a loop. I'd need something that created a new Order for every line and then assign Order.ordernumber, Order.location etc.
Any help would be MUCH appreciated!