Logo
Home Cart [Log In] About Us Contact Us

Object Reference

xf_InteractInteraction

Public Function AddStringToTextFile (
FileNameAndPath As String,
WriteString As String,
Optional OnErrReturnStrOnly As Boolean = False
) As String

Write a string to the specified text file, adding to any existing file

FileNameAndPath as String

The path of the file to write

WriteString as String

The text to write to the file

Optional OnErrReturnStrOnly as Boolean = False

If an error occurs, return the error message only and don't display a dialog

Call Template:

Dim s As String
s = xf.Interact.AddStringToTextFile(FileNameAndPath, WriteString)
s = xf.Interact.AddStringToTextFile(FileNameAndPath, WriteString, OnErrReturnStrOnly)

See Also:

Example 1:

Dim ErrorStr as String
ErrorStr = AddStringToTextFile("C:\Temp\TempFile.txt", FileText, True)
Contact Us :: About Us :: Policies :: email: infspamo@arrospamw-of-tispamme.com    © 2012 Arrow Of Time Pty Ltd