File.ReadAllLines(String, Encoding) Method in C# with Examples
File.ReadAllLines(String, Encoding) is an inbuilt File class method that is used to open a text file then reads all lines of the file into a string array with the specified encoding and then closes the file.Syntax:Â Â public static string[] ReadAllLines (string path, System.Text.Encoding encoding); P