How to skip first line and start reading file from second line in C#
问题 How to start reading file from 2nd line skipping 1st line. This seems to work but is it best way to do so? using (StreamReader sr = new StreamReader(varFile, Encoding.GetEncoding(1250))) { string[] stringSeparator = new string[] { "\",\"" }; int i = 0; while (!sr.EndOfStream) { string line = sr.ReadLine(); //.Trim('"'); if (i > 0) { string[] values = line.Split(stringSeparator, StringSplitOptions.None); for (int index = 0; index < values.Length; index++) { MessageBox.Show(values[index].Trim('