StreamWriter.WriteLine Method

July 28, 2014

Writes some data as specified by the overloaded parameters, followed by a line terminator.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  NameDescription
Public method WriteLine() Writes a line terminator to the text stream. (Inherited from TextWriter.)
Public method WriteLine(Boolean) Writes the text representation of a Boolean followed by a line terminator to the text stream. (Inherited from TextWriter.)
Public method WriteLine(Char) Writes a character followed by a line terminator to the text stream. (Inherited from TextWriter.)
Public method WriteLine(Char[]) Writes an array of characters followed by a line terminator to the text stream. (Inherited from TextWriter.)
Public method WriteLine(Decimal) Writes the text representation of a decimal value followed by a line terminator to the text stream. (Inherited from TextWriter.)
Public method WriteLine(Double) Writes the text representation of a 8-byte floating-point value followed by a line terminator to the text stream. (Inherited from TextWriter.)
Public method WriteLine(Int32) Writes the text representation of a 4-byte signed integer followed by a line terminator to the text stream. (Inherited from TextWriter.)
Public method WriteLine(Int64) Writes the text representation of an 8-byte signed integer followed by a line terminator to the text stream. (Inherited from TextWriter.)
Public method WriteLine(Object) Writes the text representation of an object by calling ToString on this object, followed by a line terminator to the text stream. (Inherited from TextWriter.)
Public method WriteLine(Single) Writes the text representation of a 4-byte floating-point value followed by a line terminator to the text stream. (Inherited from TextWriter.)
Public method WriteLine(String) Writes a string followed by a line terminator to the text stream. (Inherited from TextWriter.)
Public method WriteLine(UInt32) Writes the text representation of a 4-byte unsigned integer followed by a line terminator to the text stream. (Inherited from TextWriter.)
Public method WriteLine(UInt64) Writes the text representation of an 8-byte unsigned integer followed by a line terminator to the text stream. (Inherited from TextWriter.)
Public method WriteLine(String, Object) Writes out a formatted string and a new line, using the same semantics as Format. (Inherited from TextWriter.)
Public method WriteLine(String, Object[]) Writes out a formatted string and a new line, using the same semantics as Format. (Inherited from TextWriter.)
Public method WriteLine(Char[], Int32, Int32) Writes a subarray of characters followed by a line terminator to the text stream. (Inherited from TextWriter.)
Public method WriteLine(String, Object, Object) Writes out a formatted string and a new line, using the same semantics as Format. (Inherited from TextWriter.)
Top

Show:
© 2014 Microsoft