I need to delete an exact line from a text file but I cannot for the life of me workout how to go about doing this.
Any suggestions or examples would be greatly appr
You can actually use C# generics for this to make it real easy:
var file = new List(System.IO.File.ReadAllLines("C:\\path")); file.RemoveAt(12); File.WriteAllLines("C:\\path", file.ToArray());