File.AppendAllLines(String, IEnumerable<String>, Encoding) Method in C# with Examples
File.AppendAllLines(String, IEnumerable<String>, Encoding) is an inbuilt File class method which is used to append specified lines to a file by using a specified encoding and then closes the file. If the specified file does not exist, this method creates a new file, writes the specified lines