I have the following C# code
class Test
{
public static void Main(String[] argv)
{
Console.WriteLine("Hello ");
}
}
When I run the program from the command prompt, I do not see output. The c# file name is file.cs and compiles into file.exe.
When I run this from the command prompt:
c:\>file.exe
I do not see any output. But it works if I run this:
c:\>file.exe | more
I understand I need to do something other that console.WriteLine(). Is there any way that I can redirect all Console.WriteLine() calls to standard output?
Mainsection of the code.. please show some relevant code also if you are wanting to pause the console to see the output use Console.Read() or Console.ReadLine() methodDOS shellorDOS window. Those haven't existed since like Windows 98. Its just called acommand windownow.| moreoption than probably, you have other statements coming to console, causing it to scroll.