Exemple #1
0
 public static string[][] Read(string file)
 {
     CsvReader cr = null;
     try
     {
         cr = new CsvReader(file);
         return cr.ReadToEnd();
     }
     finally
     {
         if (cr != null)
         {
             cr.Close();
         }
     }
 }
Exemple #2
0
        public static string[][] Read(string file)
        {
            CsvReader cr = null;

            try
            {
                cr = new CsvReader(file);
                return(cr.ReadToEnd());
            }
            finally
            {
                if (cr != null)
                {
                    cr.Close();
                }
            }
        }