One of the easier classes to use for reading text files is the Scanner class.
Use an array for putting what is read into an array.
NormR1
Posting Expert
6,677 posts since Jun 2010
Reputation Points: 1,138
Solved Threads: 656
or, read the file line by line, create a simple object OrderSlip which will contain all the info for one orderslip and, if you know up front how many orders you will have, create an array of orderslips in which you store the info, otherwise, add them to a list which takes only OrderSlips as elements.
stultuske
Posting Sensei
3,137 posts since Jan 2007
Reputation Points: 1,114
Solved Threads: 433