
本文共 1623 字,大约阅读时间需要 5 分钟。
������txt���������������������
���D������������������txt���������������������������������������������,
���������������������������������������������������������������������������GB2312������������������������������������������
������������
������������������������������������������������������������������������txt������������������������������������������������������������
private void Phone_Load(object sender, EventArgs e){ string ReadLine; string[] array; string Path = @"D:\FrontierApp.TXT"; StreamReader reader = new StreamReader(Path, System.Text.Encoding.GetEncoding("GB2312")); while ((ReadLine = reader.ReadLine()) != null) { try { ReadLine = ReadLine.Replace("\"", ""); array = ReadLine.Split(','); if (array.Length == 0) { MessageBox.Show("������������������������������������������������������������������"); return; } foreach (string item in array) { comboBox2.Items.Add(item); } } catch (Exception ex) { MessageBox.Show("���������������������" + ex.Message); } }}
������������
������������������������������������txt���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������
������������
������������������������������������txt���������������������������������������������������������������������������������������������
发表评论
最新留言
关于作者
