using System.Collections.Generic;
public static void Main()
TextFile jaredsFile = new TextFile();
myLine = jaredsFile.ReadLine();
Console.WriteLine(productType);
sku = myLine.Substring(1,5);
year = myLine.Substring(6,4);
promo = myLine.Substring(10,2);
Console.WriteLine(promo);
private List<string> lines;
private int nextLineIndex;
lines = new List<string>();
string[] newValues = new string[]{
lines.AddRange(newValues);
public bool FileHasMoreLines()
return nextLineIndex < lines.Count;
string textLine = "<<ERROR: FILE IS EMPTY>>";
if (nextLineIndex < lines.Count)
textLine = lines[nextLineIndex];