Saving to files and retrieving
its very simpple code but it doesnt work for me
When i press the command button to retreive the data from the file, it will not work i get Path/File access error
Dim memory As String
i am just doing this to test out how ti works for another program im working on but, itsnot
my code:
Private Sub command1_Click()
memory = text1
Put #1, 1, memory
End Sub
Private Sub command2_Click()
Get #1, 1, memory
End Sub
Private Sub Form_Load()
Open "c:\file1.txt" For Random Access Write As #1 Len = 20
End Sub
|