![]() |
#2
suzhanpeng2017-12-26 10:34
|

Private Sub File1_Click()
Open File1.Path & "\" & File1.FileName For Binary As #1
Text1.Text = Input(LOF(1), 1)
Close #1
End Sub
Private Sub Form_Load()
File1.Path = App.Path & "\wz" '设置路径"
File1.Pattern = "*.txt"
End Sub
Open File1.Path & "\" & File1.FileName For Binary As #1
Text1.Text = Input(LOF(1), 1)
Close #1
End Sub
Private Sub Form_Load()
File1.Path = App.Path & "\wz" '设置路径"
File1.Pattern = "*.txt"
End Sub
还提一个问题就是File1读取文件后 怎么去除后缀名!
[此贴子已经被作者于2017-12-26 09:37编辑过]