WriteLine()

StreamWriter::WriteLine() method

Writes line terminator characters to the stream.

void System::IO::StreamWriter::WriteLine() override

StreamWriter::WriteLine(const String&) method

Writes the specified string followed by the line-terminating characters to the stream.

void System::IO::StreamWriter::WriteLine(const String &value) override

Arguments

ParameterTypeDescription
valueconst String&The string to write

StreamWriter::WriteLine(const SharedPtr<Object>&) method

Writes the string representation of the specified object followed by the line-terminating characters to the stream.

void System::IO::StreamWriter::WriteLine(const SharedPtr<Object> &obj) override

Arguments

ParameterTypeDescription
objconst SharedPtr<Object>&The object to write

StreamWriter::WriteLine(const ArrayPtr<char_t>&) method

Writes all characetrs from the specified array followed by the line-terminating characters to the stream.

void System::IO::StreamWriter::WriteLine(const ArrayPtr<char_t> &buffer) override

Arguments

ParameterTypeDescription
bufferconst ArrayPtr<char_t>&The array containing the characters to write

StreamWriter::WriteLine(const ArrayPtr<char_t>&, int32_t, int32_t) method

Writes the specified subrange of UTF-16 characters from the specified character array followed by the line-terminating characters to the stream.

void System::IO::StreamWriter::WriteLine(const ArrayPtr<char_t> &buffer, int32_t index, int32_t count) override

Arguments

ParameterTypeDescription
bufferconst ArrayPtr<char_t>&The array containing the characters to write
indexint32_tA 0-based index of the elemnet in buffer at which the subrange to write begins
countint32_tThe number of characters in the subrange to write; -1 specifies that the subrange ends where buffer array ends

StreamWriter::WriteLine(const char_t *) method

Writes the specified c-string followed by the line-terminating characters to the stream.

void System::IO::StreamWriter::WriteLine(const char_t *buffer) override

Arguments

ParameterTypeDescription
bufferconst char_t *The c-string to write

StreamWriter::WriteLine(const System::SharedPtr<T>&) method

Writes the string representation of the specified object followed by the line-terminating characters to the stream.

template<typename T> void System::IO::StreamWriter::WriteLine(const System::SharedPtr<T> &obj)

Template parameters

ParameterDescription
TThe type of the object

Arguments

ParameterTypeDescription
objconst System::SharedPtr<T>&The object to write

See Also