ACF Library

WriteOutputWinFileIso8859_1

Back to List

Description: Write to a file opened with the function "OpenOutputFile", using the filehandle and text to write. Converts CR to CRLF for Windows, and also converts UTF8 to ISO-8859-1 format used by Windows.

FileMaker Prototype:

Set Variable [$res; ACFU_WriteOutputWinFileIso8859_1( int_FileNo;  string_data)]

Category: BOOTSTRAP

NOTE: The bootstrap library comes preloaded in the plugin. Read more

Function source:

function WriteOutputWinFileIso8859_1 ( int FileNo, string data ) 
   FunctionID 212; 
   write ( FileNo , from_utf ( substitute ( data, "\r", "\r\n" ), "ISO-8859-1" )) ; 
   return "OK";
end 

WriteOutputWinFileIso8859_1 is used together with the OpenOutputFile to write more content to an allready opened file.

For Examples, see the OpenOutputFile function.

Set Variable [$res; ACFU_WriteOutputWinFileIso8859_1( $FileNo;  "My extra report line in ISO-8859-1 format")]
Back to List