protected void Button3_Click(object sender, EventArgs e) { string path = FileUpload1.PostedFile.FileName; if(!string.IsNullOrEmpty(path)) { string[] readText=File.ReadAllLines(path); StringBuilder strbuild=new StringBuilder(); foreach(string s in readText) { strbuild.Append(s); strbuild.AppendLine(); } TextBox2.Text=strbuild.ToString(); } }
Could not find file 'C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\aaaaaa.txt'.
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)