@FileReadText

Parent Previous Next

@FileReadText.

Imports a text file - implicit converting from a specified codepage. Returns true if it succeeds. Otherwise returns false.


Syntax.


 @FileReadText(String fileName; Integer codepage; String &text) : Boolean

 


Arguments:


Example:


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

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

 String  text;

 Boolean import;

 import := @FileReadText(filePath, cpUTF8, text);