I'm writing a console application that will include a help menu. The program writes out "Type HELP for a list of available commands". What I want to figure out is how can I have the program constantly checking any input that enters the program and run it against a list of specified keywords, for example, HELP.
Some logic would be:
public class helpCOMMANDS {
public void HELP()
{
if ((System.Console.ReadLine() == "HELP"))
{
Console.WriteLine("Output HELP commands here");
}
}
}
My logic could be way off, but that is the general idea of what I'm looking to do.
Thanks.


Sign In
Create Account


Back to top









