Writing to a text file

Output is sent to a text file in the format you specify: Value1, 2, 3, etc... are the fields (string values only) you wish to write to the file.
LotusScript


'Step 1 - Declare variable
	Dim filenum1 As Integer
         
'Step 2 - Create and open text file for append on the local hard drive     
	filenum1 = Freefile
	Open "C:\TEXTFILE.TXT" For Append As filenum1
        
'Step 3 - Write a line to the text file         (value1, 2, 3, etc... are the values you want to write delimited by a comma)
	Write #filenum1 , value1, value2, value3, value4
  
'Step 4 - Closes the text file
	Close filenum1
    

Posted by fbrefere001 on Monday February 26, 2001