I'm trying to use C#'s Console.ReadLine()
method to take user input from the console, then subsequently print text on the same line.
Code being used:
using System;
namespace Test {
class Program {
static void Main(string[] args) {
Console.ReadLine();
Console.Write(" out");
}
}
}
What I'm expecting from the console:
in out
What's actually being produced:
in
out
Note that in
here is being typed into the console.
Any assistance would be greatly appreciated. Thanks!
-chris