This sample allows you to append the text to a file:
Public Sub WriteFile(ByRef Path As String, _
ByRef Text As String, _
Optional ByVal bAppend As Boolean _
)
On Error GoTo AUSGANG
Dim FileNr As Long
FileNr = FreeFile
Select Case bAppend
Case False
Open Path For Output As #FileNr
Case Else
Open Path For Append As #FileNr
End Select
Print #FileNr, Text;
AUSGANG:
If FileNr Then CloseFileHandle FileNr
End Sub
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.