ghdhair100
Dołączył: 15 Gru 2010
Posty: 1990
Przeczytał: 0 tematów
Ostrzeżeń: 0/5 Skąd: England
|
Wysłany: Śro 9:48, 02 Mar 2011 Temat postu: c# 读TXT文件 |
|
|
openFileDialog1.ShowDialog();
StreamReader str = new StreamReader(openFileDialog1.FileName);
string strlin = str.ReadLine();
while (strlin != null)
{
listBox1.Items.Add(strlin);
strlin = str.ReadLine();
}
str.Close();Many years ago there lived an Emperor who was so exceedingly fond of fine new clothes that he spent vast sums of money on dress. To him clothes meant more than anything else in the world. He took no interes
related links:
[link widoczny dla zalogowanych]
Post został pochwalony 0 razy
|
|