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

◆ WriteAllLines() [1/4]

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

Definition at line 439 of file File.cs.

440 {
441 if (path == null)
442 {
443 throw new ArgumentNullException("path");
444 }
445 if (contents == null)
446 {
447 throw new ArgumentNullException("contents");
448 }
449 if (path.Length == 0)
450 {
451 throw new ArgumentException(SR.Argument_EmptyPath, "path");
452 }
453 InternalWriteAllLines(new StreamWriter(path), contents);
454 }
static void InternalWriteAllLines(TextWriter writer, IEnumerable< string > contents)
Definition File.cs:482

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