F fxb Unregistered / Unconfirmed GUEST, unregistred user! 2006-09-12 #1 例如,要读取1.txt文件内容,在WEB中显示,该如何做?请给原码
S starpc Unregistered / Unconfirmed GUEST, unregistred user! 2006-09-12 #2 try using System.IO; StreamReader sr = new StreamReader("YourFileName", System.Text.Encoding.GetEncoding("GB2312"); String s = sr.ReadToEnd(); sr.Close();
try using System.IO; StreamReader sr = new StreamReader("YourFileName", System.Text.Encoding.GetEncoding("GB2312"); String s = sr.ReadToEnd(); sr.Close();
P pearroom Unregistered / Unconfirmed GUEST, unregistred user! 2006-09-17 #5 private void Page_Load(object sender, System.EventArgs e) { Response.WriteFile("aa.txt" }