www.icetips.com  Icetips Utilities Documentation 7/6/2014    

ReadFileToQ

Previous  Top  Next  


Prototype: (String pFileName),Long

 

pFileNameName of (text) file to read into lines

 

ReturnsInteger value containing the number of lines read into the Lines property.

 

This method calls the FileToLines method, it's just a different naming convention matching the WriteQToFile.

 

Example:

 

Fn  CString(2049)

I   Long

L   Long

ITST ITStringClass

Code

Fn = 'c:\temp\textfile.txt

If Exists(ShortPath(Fn))

  L = ITST.ReadFileToQ(Fn)

  Loop I = 1 To L

    ITST.ODS(Format(I,@n4) & ' ' & ITST.GetLine(I))

  End

End

 

See also:

FileToLines

WriteQToFile

StringToLines

 



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