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

◆ AppendAllText() [2/2]

static void System.IO.File.AppendAllText ( string path,
string? contents,
Encoding encoding )
inlinestatic

Definition at line 507 of file File.cs.

508 {
509 if (path == null)
510 {
511 throw new ArgumentNullException("path");
512 }
513 if (encoding == null)
514 {
515 throw new ArgumentNullException("encoding");
516 }
517 if (path.Length == 0)
518 {
519 throw new ArgumentException(SR.Argument_EmptyPath, "path");
520 }
521 using StreamWriter streamWriter = new StreamWriter(path, append: true, encoding);
522 streamWriter.Write(contents);
523 }

References System.SR.Argument_EmptyPath.