The C# Console.ReadLine()
command is simply ignored when I run my code using mono filename.exe
after having compiled it using gmcs filename.cs
. What could be happening? Even when I try running the simple code bellow it skips right to the end as if it ran nothing..
static void Main(string[] args) {
string value = Console.ReadLine();
Console.WriteLine("You entered: {0}", value);
Console.WriteLine("Press ENTER to continue...");
Console.ReadLine(); // Returns immediately.
Console.WriteLine("Continuing....");
}