public static List<Lot> ParseLotsListFromFile(string fileName)
{
var itemsList = new List<Lot>();
string line;
// Read the file and display it line by line.
using (System.IO.StreamReader file = new System.IO.StreamReader(fileName))
{
while ((line = file.ReadLine()) != null)
{
int lotPartyId = int.Parse(line);
var item = new Lot(lotPartyId);
itemsList.Add(item);
}
}
return itemsList;
}