public static void AppendAllLines(string path, IEnumerable <string> contents) { Path.Validate(path); if (contents == null) { return; } using (TextWriter textWriter = new StreamWriter(path, true)) foreach (string value in contents) { textWriter.WriteLine(value); } }
internal static void Validate(string path) { Path.Validate(path, "path"); }