コード例 #1
0
        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);
        }
コード例 #2
0
 public RecordFactory(string filePath)
 {
     this.filePath = filePath;
     getNextLine   = new GetNextLineFromTheFile(this.filePath);
 }