View Single Post
Old 06-23-2005, 02:35 PM   #1 (permalink)
someone_somewhe
Registered User
 
Join Date: Jun 2005
Posts: 3
someone_somewhe is on a distinguished road
Question 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
someone_somewhe is offline   Reply With Quote