public List <string> CreateHeader() { List <string> header = new List <string>(); GetNextLineFromTheFile nextLine = new GetNextLineFromTheFile(filePath); for (int i = 0; i < 5; i++) { header.Add(nextLine.GetLine()); } nextLine.CloseStream(); return(header); }
public RecordFactory(string filePath) { this.filePath = filePath; getNextLine = new GetNextLineFromTheFile(this.filePath); }