Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ AppendAllLines() [2/2]

static void System.IO.File.AppendAllLines ( string path,
IEnumerable< string > contents,
Encoding encoding )
inlinestatic

Definition at line 542 of file File.cs.

543 {
544 if (path == null)
545 {
546 throw new ArgumentNullException("path");
547 }
548 if (contents == null)
549 {
550 throw new ArgumentNullException("contents");
551 }
552 if (encoding == null)
553 {
554 throw new ArgumentNullException("encoding");
555 }
556 if (path.Length == 0)
557 {
558 throw new ArgumentException(SR.Argument_EmptyPath, "path");
559 }
560 InternalWriteAllLines(new StreamWriter(path, append: true, encoding), contents);
561 }
static void InternalWriteAllLines(TextWriter writer, IEnumerable< string > contents)
Definition File.cs:482

References System.SR.Argument_EmptyPath, and System.IO.File.InternalWriteAllLines().