public static async Task WriteAllLines(string filePath, IEnumerable <string> lines, string lineSeparator, bool overwrite = IOHelper.DefaultOverwriteValue)
 {
     using (var writer = StreamWriterHelper.NewWrite(filePath, overwrite))
     {
         await StreamWriterHelper.WriteAllLines(writer, lines, lineSeparator);
     }
 }
示例#2
0
 public static Task WriteAllLines(string filePath, IEnumerable <string> lines, bool overwrite = IOHelper.DefaultOverwriteValue)
 {
     return(StreamWriterHelper.WriteAllLines(filePath, lines, overwrite));
 }
 public static Task WriteAllLines(StreamWriter writer, IEnumerable <string> lines)
 {
     return(StreamWriterHelper.WriteAllLines(writer, lines, Strings.NewLineForEnvironment));
 }