TextWriter defines Write() and WriteLine() that output all of the built-in types. : TextReader TextWriter « File Directory Stream « C# / CSharp Tutorial






MethodDescription
void Write(int val)Write an int.
void Write(double val)Write a double.
void Write(bool val)Write a bool.
void WriteLine(string val)Write a string followed by a newline.
void WriteLine(uint val)Write a uint followed by a newline.
void WriteLine(char val)Write a character followed by a newline.
void Close()Close the stream.
void Flush()Write any data remaining in the output buffer to the physical medium.


15.22.TextReader TextWriter
15.22.1.The Input Methods Defined by TextReader
15.22.2.TextWriter defines Write() and WriteLine() that output all of the built-in types.
15.22.3.The TextReader and TextWriter classes are implemented by several character-based stream classes.
15.22.4.Writing to a writer