|
Previous Top Next |
Prototype: | (String pFileName, String pContent, Byte pAppend=False)!!,Long,PROC |
pFileName | Name of the file to write to |
pContent | Contents to write to the file. This can be any data, binary or text. |
pAppend | Indicates if the method should append the data to the file if it exists. Defaults to False |
Returns | Optionally returns the number of bytes written to the file. |
This method is a wrapper for the WriteStringToFile. It simply provides an alternate and shorter name.
Example:
ITS ITStringClass
S String(1024)
Code
S = 'Icetips Alta LLC<13,10>' &|
'3430 E Highway 101 Ste 28<13,10>' &|
'Port Angeles, WA 98362<13,10>'
ITS.StringToFile('C:\Temp\Test.txt')
This will write the contents of the string to a file called C:\Temp\Test.txt and it will now contain this:
Icetips Alta LLC
3430 E Highway 101 Ste 28
Port Angeles, WA 98362
See also: