How do I perform console reads?

Started by
1 comment, last by Rob Loach 18 years ago
After learning how to use the "System" object to access pretty much any command that I can access when using the dos or "command" prompt, I am still puzzled. I am able to run programs and call functions using System.Function() but how can I read from the command prompt after these functions and programs are called? Can someone toss me a hint here?
Advertisement
C#?

System.Console.Read(); is what I like.
-----------------------------------Panic and anxiety Disorder HQ
The "System" you're refering to isn't an object. System is a namespace in which the Console class resides:

System.Console.Write("Enter your name: ");
string name = System.Console.ReadLine();
Rob Loach [Website] [Projects] [Contact]

This topic is closed to new replies.

Advertisement