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.
FileWrite( file=any, data=any, charset=string );
Returns: void
Examples
filewrite("filepath","fileContent to be write");
Related System Properties / Environment Variables
- LUCEE_RESOURCE_CHARSET - Default character set for reading from/writing to various resources (files)
Type: string, Default: system charset
See also
- Binary data
- File handling
- Search Issue Tracker
- Search Lucee Test Cases (good for further, detailed examples)