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

Argument Description
file
any, required

file path or object

Alias: filePath, source

data
any, required

data to write to the file

charset
string, optional

The character encoding in which the file contents is encoded.

Examples

filewrite("filepath","fileContent to be write");

See also