' 在当前文件夹中进行文件操作,可以用相对路径; ' 如果在指定文件夹中进行文件操作,才使用绝对路径。 Private Sub Load_Click() Dim a As String Text1.Text = "" Open "Example.TXT" For Input As #1 Do While .Not.Eof(1) Line Input #1, a Text1.Text = Text1.Text & a & vbCrLf Loop Close #1 End Sub Private Sub Save_Click() Open "Example.TXT" For Output As #1 Print #1,Text1.Text Close #1 End Sub