Suppose your file is at dekstop with name test.txt
System.IO.StreamReader streamReader = new System.IO.StreamReader("C:\\Users\\PuneetGoel\\Desktop\\test.txt");
string text = streamReader.ReadToEnd();
string macAddress = text.Split('=')[2].ToString();
streamReader.Close();