[Mono-list] Simple Console ReadLine problem

radzfoto rzdiaz at yahoo.com
Wed Mar 26 15:13:43 EDT 2008


I am a moderately experienced programmer especially in C and C++. I am just
learning C#.

I compiled the following under MS Visual Studio and it worked fine. However,
exact same code fails to read the string using ReadLine. Any ideas that
could help me out?

Here is the code:
using System;

namespace TestReadLine
{
	class MainClass
	{
		public static void Main(string[] args)
		{
			string str;
			
			Console.Write("Enter some text and press enter: ");
			str = Console.ReadLine();
			Console.WriteLine("This is the text you entered: " + str);
			Console.ReadLine
		}
	}
}

Thanks!
Radzfoto

-- 
View this message in context: http://www.nabble.com/Simple-Console-ReadLine-problem-tp16313806p16313806.html
Sent from the Mono - General mailing list archive at Nabble.com.



More information about the Mono-list mailing list