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

String Class:  LinesToFile

Previous  Top  Next  


Prototype: (String pFileName, <String pEOL>),LONG,PROC

 

pFileNameFile to write the lines to. 
pEOLOptional End Of Line delimiter to use.  Defaults to CR+LF <13,10> if either pEOL is omitted or is empty.

 

ReturnsOptionally returns the number of lines in the Lines queue property.

 

This method simply calls the WriteQToFile.  It is provided as perhaps a better name for the method.

 

Example:

ITS  ITStringClass

S    String(1024)

Code

ITS.AddLine('Icetips Alta LLC')

ITS.AddLine('3430 E Highway 101, Ste. 28')

ITS.AddLine('Port Angeles, WA 98362')

ITS.LinesToFile('C:\Temp\Test.txt')

 

 

This will write the records in the queue tot he C:\Temp\Test.txt file as:

 

Icetips Alta LLC

3430 E Highway 101, Ste. 28

Port Angeles, WA 98362

 

 

See also:

WriteQToFile

 



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