/ Forums / Advansys Formativ / Creating Solutions with Formativ / Writing to a text file / Reply To: Writing to a text file
November 15, 2005 at 2:01 pm
#7370
Check the Formativ Language Guide and Visual Basic Script Guide for more information. Here is some of the options available:
– Use SaveStringToFile method to save a string value to a file.
call utilities.SaveStringToFile(“My log entry”, “c:tempmylog.txt”, true)
– Creates a new StringList object and call SaveToFile method to save the strings in the list to a file.
dim oList
set oList = utilities.StringList
oList.add(“Line 1”)
oList.add(“Line 2”)
oList.SaveToFile(“c:tempmylog.txt”)
set oList = nothing
Hope this helps.
MA