private void ImportCountries() { string delimiter = ","; string fileName = @"c:\countrylist3.csv"; StreamReader sr = new StreamReader(fileName); try { while (sr.Peek() >= 0) { string r = sr.ReadLine(); string[] items = r.Split(delimiter.ToCharArray()); } } finally { sr.Close(); } }
You need to create an account or log in to post comments to this site.