Description This command re-routes data printed to the Output window into a designated text file. If the specified file already exists, the contents are appended. The companion command, SetTextFileOff must be issued to terminate the printing to the text file.
Syntax SetTextFileAppend filename, fileOnly
Parameters fname As String The full path of file to append text.
fileOnly As Boolean Set this variable to True if output is to be directed to the file only. False allows FRED to print to the output window and text file.
Examples The following example specifies a text file and redirects output to both the output window and the text file.
Sub Main
Dim fName As String fName = "C:\temp\textOutput.txt"
SetTextFileAppend fName, False Print "This" Print "is" Print "some" Print "text" Print "4 + 4 = " & 4+4 SetTextFileOff
End Sub
See Also
|