Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
◆
WriteAllText()
[2/2]
static
void
System.IO.File.WriteAllText
(
string
path
,
string
?
contents
,
Encoding
encoding
)
inline
static
Definition at line
296
of file
File.cs
.
297
{
298
if
(
path
==
null
)
299
{
300
throw
new
ArgumentNullException(
"path"
);
301
}
302
if
(encoding ==
null
)
303
{
304
throw
new
ArgumentNullException(
"encoding"
);
305
}
306
if
(
path
.Length == 0)
307
{
308
throw
new
ArgumentException
(SR.Argument_EmptyPath,
"path"
);
309
}
310
using
StreamWriter
streamWriter
=
new
StreamWriter(
path
,
append
:
false
, encoding);
311
streamWriter
.Write(contents);
312
}
System.Collections.Generic.Dictionary
Definition
Dictionary.cs:14
System.Xml.ExceptionType.ArgumentException
@ ArgumentException
References
System.SR.Argument_EmptyPath
.
System
IO
File
Generated by
1.10.0