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

◆ ReadAllText() [2/2]

static string System.IO.File.ReadAllText ( string path,
Encoding encoding )
inlinestatic

Definition at line 259 of file File.cs.

260 {
261 if (path == null)
262 {
263 throw new ArgumentNullException("path");
264 }
265 if (encoding == null)
266 {
267 throw new ArgumentNullException("encoding");
268 }
269 if (path.Length == 0)
270 {
271 throw new ArgumentException(SR.Argument_EmptyPath, "path");
272 }
273 return InternalReadAllText(path, encoding);
274 }
static string InternalReadAllText(string path, Encoding encoding)
Definition File.cs:276

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