FileToString( string Filename, ref string String, {string EOLSeparator} ) return integer

This method store the content of a text file into a string variable separing lines by the specified EOLSepatator.
If the EOLSeparator is not specified, CR+LF will be used by default.

string ls_file_CRLF
string ls_file_Pipe
if #.FileToString( "C:\MyFolder\myfiles.xls", ls_file_CRLF ) = -1 then return -1
if #.FileToString( "C:\MyFolder\myfiles.xls", ls_file_Pipe, "|" ) = -1 then return -1

See also:


Last edited May 29, 2016 at 8:51 PM by domangep, version 1