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

◆ AppendAllText() [1/2]

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

Definition at line 493 of file File.cs.

494 {
495 if (path == null)
496 {
497 throw new ArgumentNullException("path");
498 }
499 if (path.Length == 0)
500 {
501 throw new ArgumentException(SR.Argument_EmptyPath, "path");
502 }
503 using StreamWriter streamWriter = new StreamWriter(path, append: true);
504 streamWriter.Write(contents);
505 }

References System.SR.Argument_EmptyPath.

Referenced by System.Diagnostics.DefaultTraceListener.WriteToLogFile().