Lucee Function Reference
filewrite()
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.
Example
filewrite(any file,any data,[string charset]):void
Category
binary
Arguments
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. |