TextWriter Write () WriteLine (), . .
Virtual void Close() virtual void Flush()
Flush () , . Close () .
TextReader TextWriter , , . , , TextReader TextWriter.
, , BinaryReader BinaryWriter. , -.
, - #, , -.
-
- , Console. In, Console. Out Console. Error. - 2, . , .
, C# - , , , . -, , . , -, , , .
Console. In TextReader, , TextReader. , Console, Console. In. Console . , Read () ReadLine (), .NET Framework 1.0. , ReadKey (), 2.0 .
Read ().
Static int Read()
Read () , . , , . int char. , Read () -1. IOException . Read () , <Enter>, , .
, Read () , .
// , .
Using System;
class {
static void Main() { char ch;
Console.Write(" , <ENTER>: ");
ch = (char) Console.Read(); // char Console.WriteLine(" : " + ch);
}
}