result: integer
Number of actually written characters. -1 in case of error.
open_id: integer
Value provided by ASfCreate or ASfOpen.
text: ANSI or Unicode string
Text to write.
length
(optional) Number of characters to write. Is useful if a 0 character is present in the string.
See example.