using
public
{
String line;
String mkey;
String mvalue;
mkey="";
mvalue="";
mkey = line.Substring(line.IndexOf("key=")+5);
mkey = mkey.Substring(0,mkey.IndexOf("\""));
mvalue = line.Substring(line.IndexOf("value=")+7);
mvalue = mvalue.Substring(0,mvalue.IndexOf("\""));
Console.WriteLine("Key={0} || Value={1}",mkey,mvalue);
}
Console.ReadLine();
Console.WriteLine("The file could not be read:");
Console.WriteLine(e.Message);