相关代码 |
|
Ch13-04-01.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 Buffer(1) As Char SrReader.Read(Buffer, 0, 1) SrReader.Close() Response.Write("读取的字符为:" & Buffer) End Sub 文件夹名称: Runat="Server" /> OnClick="Button1_Click" Runat="Server" />
相关资源 |
|