Read Line Of Text From Input Device C# with Example
using System.IO; using System; namespace CSharpFilesAndStreams { class ReadChars2 { static void Main() { string str; Console.Write("Enter some characters."); str = Console.In.ReadLine(); // call TextReader's ReadLine() method Console.WriteLine("You entered: " + str); } } }