Railo 4.2 Reference
Choose a function:


If you specify a file path, writes the entire content to the specified file. If you specify a file object, writes text or binary data to the file object.


filewrite(any file,any data,[string charset]):void


The arguments for this function are set. You can not use other arguments except the following ones.
Name Type Required Description
file any  Yes file path or object  
data any  Yes data o write to the file  
charset string  No The character encoding in which the file contents is encoded.