On Error Resume Next Open App.Path & "data.dat" For Input As #2 Input #2, strResult Close #2 Open App.Path & "data.dat" For Random As #1 If Len(strResult) = 0 Then For intIndex = 1 To 30 Put #1, intIndex, gstrString(intIndex - 1) Next intIndex Else For intIndex = 1 To 30 Get #1, intIndex, gstrString(intIndex - 1) Next intIndex End If Close #1
For intIndex = 1 To 30
Put #1, intIndex, gstrString(intIndex - 1)
Next intIndex
I think this writes data into the file...