www.icetips.com  Icetips Utilities Documentation 10/27/2015    

String Class:  StringToFile

Previous  Top  Next  


Prototype: (String pFileName, String pContent, Byte pAppend=False)!!,Long,PROC

 

pFileNameName of the file to write to
pContentContents to write to the file.  This can be any data, binary or text.
pAppendIndicates if the method should append the data to the file if it exists.  Defaults to False

 

ReturnsOptionally 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:

 

 



Direct link to this page: http://www.icetips.com/manuals/utilities/stringtofile_stringclass.htm