KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I can currently remove the last line of a text file using: var lines = System.IO.File.ReadAllLines("test.txt"); System.IO.File.WriteAllLines("test.txt", lines.Take(lines.Length - 1).ToArray()); Although, how is it possible to instead remove the beginning of the text file?
Tags (comma-separated)
Save Edits
Cancel