@FileWriteTextLines

Parent Previous Next

@FileWriteTextLines.

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


Syntax.


 @FileWriteTextLines(String fileName; Integer codepage; Boolean append; String[] textLines; String linePostFix) : Boolean

 


Arguments:


Example:


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

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

 String  textLines[] := ["hi", "how are you"];

 Boolean export;

 export := @FileWriteTextLines(filePath, cpUTF8, False, textLines[], @EOL());