A task that represents the asynchronous write operation.
The line terminator is defined by the TextWriter.CoreNewLine field.
The System.IO.TextWriter class is an abstract class. Therefore, you do not instantiate it in your code. For an example of using the TextWriter.WriteLineAsync(string) method, see the StreamWriter.WriteLineAsync(string) method.