Answers for "c# convert text file to list"

C#
4

c# read text file to list string

List<string> lines = System.IO.File.ReadLines(completePath).ToList();
Posted by: Guest on October-12-2020
1

List string to file C#

string[] lines = { "First line", "Second line", "Third line" };
System.IO.File.WriteAllLines(@"C:\Users\Public\TestFolder\WriteLines.txt", lines);
lines = { "Fourth line", "Fith line" };
System.IO.File.AppendAllLines(@"C:\Users\Public\TestFolder\WriteLines.txt", lines);
Posted by: Guest on August-14-2020

Code answers related to "c# convert text file to list"

C# Answers by Framework

Browse Popular Code Answers by Language