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

◆ WriteAllLines() [2/4]

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

Definition at line 461 of file File.cs.

462 {
463 if (path == null)
464 {
465 throw new ArgumentNullException("path");
466 }
467 if (contents == null)
468 {
469 throw new ArgumentNullException("contents");
470 }
471 if (encoding == null)
472 {
473 throw new ArgumentNullException("encoding");
474 }
475 if (path.Length == 0)
476 {
477 throw new ArgumentException(SR.Argument_EmptyPath, "path");
478 }
479 InternalWriteAllLines(new StreamWriter(path, append: false, encoding), contents);
480 }
static void InternalWriteAllLines(TextWriter writer, IEnumerable< string > contents)
Definition File.cs:482

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