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

◆ ReadLines() [2/2]

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

Definition at line 417 of file File.cs.

418 {
419 if (path == null)
420 {
421 throw new ArgumentNullException("path");
422 }
423 if (encoding == null)
424 {
425 throw new ArgumentNullException("encoding");
426 }
427 if (path.Length == 0)
428 {
429 throw new ArgumentException(SR.Argument_EmptyPath, "path");
430 }
431 return ReadLinesIterator.CreateIterator(path, encoding);
432 }

References System.SR.Argument_EmptyPath, and System.IO.ReadLinesIterator.CreateIterator().