I am working with a very large text file (about 70 thousand lines) and I want to delete the top line.
Clearly, load the whole thing into memory by deleting the top line, and then re-writing all of this is ineffective:
var lines = File.ReadLines(accountFileLocation.Text).Skip(1); File.WriteAllLines("output.txt", lines);
Is there any other way to do this?
source share