@FileReadTextLines

Parent Previous Next

@FileReadTextLines.

Imports a text file as an array of strings - implicit converting from a specified codepage. Returns true if it succeeds. Otherwise returns false.


Syntax.


 @FileReadTextLines(String fileName; Integer codepage; String[] textLines; String split) : Boolean

 


Arguments:


Please note that when working with larger files, performance can be significantly enhanced by working with smaller text lines individually rather than having to encrypt/decrypt a large text - perhaps multiple times.


Example:


 String  filePath := "c:\test\file_in_utf8.txt";

 Integer cpUTF8 := 65001; //the utf8 codepage;

 String  textLines[].New();

 Boolean import;

 import := @FileReadTextLines(filePath, cpUTF8, textLines[], @EOL());