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

◆ AppendAllLinesAsync() [2/2]

static Task System.IO.File.AppendAllLinesAsync ( string path,
IEnumerable< string > contents,
Encoding encoding,
CancellationToken cancellationToken = default(CancellationToken) )
inlinestatic

Definition at line 965 of file File.cs.

966 {
967 if (path == null)
968 {
969 throw new ArgumentNullException("path");
970 }
971 if (contents == null)
972 {
973 throw new ArgumentNullException("contents");
974 }
975 if (encoding == null)
976 {
977 throw new ArgumentNullException("encoding");
978 }
979 if (path.Length == 0)
980 {
981 throw new ArgumentException(SR.Argument_EmptyPath, "path");
982 }
983 if (!cancellationToken.IsCancellationRequested)
984 {
986 }
988 }
static StreamWriter AsyncStreamWriter(string path, Encoding encoding, bool append)
Definition File.cs:631
static async Task InternalWriteAllLinesAsync(TextWriter writer, IEnumerable< string > contents, CancellationToken cancellationToken)
Definition File.cs:906
static Task FromCanceled(CancellationToken cancellationToken)
Definition Task.cs:3363

References System.SR.Argument_EmptyPath, System.IO.File.AsyncStreamWriter(), System.cancellationToken, System.Threading.Tasks.Task< TResult >.FromCanceled(), and System.IO.File.InternalWriteAllLinesAsync().