Answers for "remove lines from textfile"

C#
0

remove lines from textfile

var lines = System.IO.File.ReadAllLines("...");
System.IO.File.WriteAllLines("...", lines.Take(lines.Length - 1).ToArray());
Posted by: Guest on September-09-2021

Code answers related to "remove lines from textfile"

C# Answers by Framework

Browse Popular Code Answers by Language