Re: [問題] 請問 C# 讀 .txt 檔的方法?
參考 Microsoft.VisualBasic
Using Microsoft.VisualBasic.Devices;
Computer My = new Computer();
string Mdata;
Mdata = My.FileSystem.ReadAllText("C:\\Test.txt");
Console.Write(Mdata);
我都是這樣讀txt裡的資料的..不知道有回答到你的問題嗎??
如果有錯還請個位指教一下..感謝囉
--
別人笑我太瘋顛 我笑他人看不穿
不見五陵豪傑墓 無花無酒鋤作田
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 211.20.51.237
討論串 (同標題文章)