I am fairly new to the C# programming language, and I was hoping you could help me out. To start with all I need is a simple program that will ask for user input through a command line window.
The user input will be just a string. and the string will be saved in some variable so that it can be manipulated in whatever way I want.
So just to clarify, a simple program that once launched, will open the command line window and ask the user for some input. e.g.:
Please type input:
...
Then then user would input some string > the string will be saved in some sort of variable and then program would ask the user for more input afterwards.
I would greatly appreciate any help with this.
Thank You.

Suthish NairRank #92 · 22.8K pointsPosted Jan 30, 2011, 8:38 AM EST
So other members can easily find the answers.
Suthish NairRank #92 · 22.8K pointsPosted Jan 30, 2011, 4:21 AM EST
http://www.c-sharpcorner.com/Forums/UploadFile/106400/
Ciwan9 pointsPosted Jan 30, 2011, 8:44 AM EST
using System; namespace OOSys { class Program { static void Main(string[] args) { Console.WriteLine("Please type something and press Enter:"); string userInputString; userInputString = Console.ReadLine(); Console.WriteLine("You typed: " + userInputString); Console.ReadLine(); // Stops concolse from disappearing. } } }Sam HobbsRank #108 · 20.5K pointsPosted Jan 30, 2011, 1:50 PM EST
Ciwan9 pointsPosted Jan 30, 2011, 2:47 PM EST
Still, Mr. Nair was the first to get back to me, and by my logic the first that wanted to help me. so I guess he can have the point for that. :D
Sam HobbsRank #108 · 20.5K pointsPosted Jan 30, 2011, 4:48 PM EST
As an intellectual discussion, for the fun of it, note that Suthish says so "other members can easily find the answer" and that is why I said it is most approprite to mark your own reply as the answer. Something that is much more important is that you understand the importance of marking something as the answer, and since you did that here, it will help in the future.
Suthish NairRank #92 · 22.8K pointsPosted Jan 30, 2011, 8:17 PM EST
The best part here is that you got the solution.
Most of the people run from here after they got the solution, even not bothered to click the Accepted Answer checkbox. Atleast am trying to avoid duplicate posts here, just kidding :)
I agreed your logic works, but the basic/idea got from the attcahed URL only :).