var lines = System.IO.File.ReadAllLines(path); System.IO.File.WriteAllLines(path, lines.Skip(1).ToArray());