OpenFileDialog openfile = new OpenFileDialog();
            openfile.RestoreDirectory = true;
            openfile.Multiselect = false;
            openfile.InitialDirectory = "";
            openfile.Filter = "TXT文件(*.txt)|*.txt";
            openfile.FilterIndex = 1;
            if (openfile.ShowDialog() == DialogResult.OK)
            {
                StreamReader objReader = new StreamReader(openfile.FileName.ToString());
                string sLine = "";
                List<string> listLine = new List<string>();
                while (sLine != null)
                {
                    sLine = objReader.ReadLine();
                    if (sLine != null)
                    {
                        listLine.Add(sLine);
                    }
                }
                objReader.Close();
                for (int i = 0; i < listLine.Count;i++ )
                {
                    string a = listLine[i];
                    MessageBox.Show(a);
                }
            }
上面是我写的一段代码,输出时全是乱码,如何解决?