相关代码 |
|
Ch13-04-03.aspx 如何读取整个文件 Sub Button1_Click(Obj As Object, E As EventArgs) Dim FilePath As String = Server.Mappath(Path1.Text) Dim SrReader As StreamReader = New StreamReader(FilePath) Dim strA As String = SrReader.ReadToEnd() SrReader.Close() Response.Write("文件的内容为:" & strA) End Sub 文件夹名称: Runat="Server" /> OnClick="Button1_Click" Runat="Server" />
相关资源 |
|