public static string MyMethod(string filename)
{
string result = string.Empty;
try
{
string[] lines = File.ReadAllLines(filename);
result = "Your number is " + lines[0] + " and your port is " + lines[1] + ".";
}
catch (FileNotFoundException e)
{
}
catch (IndexOutOfRangeException e)
{
}
return result;
}