you did not say if this is a Console App or WinForm.

Console:
string line;
line = Console.ReadLine();


Win (just use a TextBox):
User can type in text and you can get the text by e.g. "textBox1.text"