16,554
社区成员
发帖
与我相关
我的任务
分享
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim strm As IO.StreamReader
Dim strall As String = String.Empty
If OpenFileDialog1.ShowDialog = Windows.Forms.DialogResult.OK Then
strm = New IO.StreamReader(OpenFileDialog1.OpenFile(), System.Text.Encoding.GetEncoding("gb2312"))
strall = strm.ReadToEnd
console.writeline(strall)
End If
End Sub