Exemplo n.º 1
0
        public CSVFileParser(string filename)
        {
            using (StreamReader reader = new StreamReader(filename))
            {
                string line = reader.ReadLine();

                if (line != null)
                {
                    header = new CSVHeader(line);
                }
                while ((line = reader.ReadLine()) != null)
                {
                    rows.Add(new CSVRow(line));
                }
            }
        }
Exemplo n.º 2
0
 public void AddHeader(CSVHeader hdr)
 {
     header = hdr;
 }