1. Import library as:
Import System.Configuration
2. Read config data as:
string configIP1 = ConfigurationManager.AppSettings["ip1"];
3. Validate with user input as:
string user_input = txtUserInput.txt
if(user_input.Equals(configIP1))
{
}
{
}
I hope this is what you are looking for...
Hope this will help you.
~Amol