You will need a class with all of these fields defined.
Like your last project where you used a KeyValuePair, you will need to create a class.
Each field of the "record" will be populated by a row in the file.
When you've collected 5 rows, add that record to a master.
The master can be a List or Array or Dictionary of Orders
thines01
Postaholic
2,424 posts since Oct 2009
Reputation Points: 445
Solved Threads: 402
I suggest that you change the file format so that all info for an order is on the same line. Pick a character like "|" to separate the fields. Each line can be parsed into separate fields by
Dim fields() As String = line.Split("|")
It makes the file I/O much easier.
Reverend Jim
Posting Shark
1,167 posts since Aug 2010
Reputation Points: 253
Solved Threads: 159
perhaps the code would have been clearer if I had included
dim line as string = "PlayStation|2|Tobyjug2222|4|CH75LW"
then the code
Dim fields() As String = line.Split("|")
would result in fields as an array of 5 elements where
fields(0) = "PlayStation"
fields(1) = "2"
fields(2) = "Tobyjug2222"
fields(3) = "4"
fields(4) = "CH75LW"
Reverend Jim
Posting Shark
1,167 posts since Aug 2010
Reputation Points: 253
Solved Threads: 159