Exemplo n.º 1
0
        public void doRead(ICSVReader csvEntry)
        {
            try
            {
                FileInfo f     = new FileInfo(m_file);
                string[] lines = File.ReadAllLines(f.FullName);

                int lineCount = 0;
                foreach (String line in lines)
                {
                    string[] entries = line.Split(',');
                    csvEntry.OnCSVEntry(lineCount++, entries);
                }
            }
            catch (Exception ex)
            {
                csvEntry.OnError(ex.Message);
            }
        }