예제 #1
0
 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);
         }
 }
예제 #2
0
 internal static void Validate(string path)
 {
     Path.Validate(path, "path");
 }