Mega Code Archive

 
Categories / C# Tutorial / File Directory Stream
 

TextWriter defines Write() and WriteLine() that output all of the built-in types

Method Description 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.