Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
◆
AppendAllText()
[2/2]
static
void
System.IO.File.AppendAllText
(
string
path
,
string
?
contents
,
Encoding
encoding
)
inline
static
Definition at line
507
of file
File.cs
.
508
{
509
if
(
path
==
null
)
510
{
511
throw
new
ArgumentNullException(
"path"
);
512
}
513
if
(encoding ==
null
)
514
{
515
throw
new
ArgumentNullException(
"encoding"
);
516
}
517
if
(
path
.Length == 0)
518
{
519
throw
new
ArgumentException
(SR.Argument_EmptyPath,
"path"
);
520
}
521
using
StreamWriter
streamWriter
=
new
StreamWriter(
path
,
append
:
true
, encoding);
522
streamWriter
.Write(contents);
523
}
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