@FileWriteText

Parent Previous Next

@FileWriteText.

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


Syntax.


 @FileWriteText(String fileName; Integer codepage; Boolean append; String text) : Boolean

 


Arguments:


Example:


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

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

 String  text := "This is my file text";

 Boolean export;

 export := @FileWriteText(filePath, cpUTF8, False, text);