Trying to open a file, and then append data to it... how can I do this?
So far I have:
Open App.Path & "\output.txt" For Random As #OutputFile Len = Len(MyRecord)
thanks...
Printable View
Trying to open a file, and then append data to it... how can I do this?
So far I have:
Open App.Path & "\output.txt" For Random As #OutputFile Len = Len(MyRecord)
thanks...
There is another way to do what you want but this should work.
Public FileNumber As Integer
Public strFileName As String
Dim strStringToWrite As String
strFileName="c:\folder\name.txt"
strStringToWrite ="Some data"
Open strFileName$ For Append As #FileNumber
Print #FileNumber, strStringToWrite
Close #FileNumber