1: 2: 3: 4: 5: 6: 7:
List<string> l = new List<string>(); string[] strFile = File.ReadAllLines("C:\\Test.txt"); l.AddRange(strFile); l.RemoveAt(0); l.RemoveAt(0); File.WriteAllLines("C:\\Test.txt", l.ToArray());