FileWrite
Writes the contents of a string or binary data to a file
Method Signature
FileWrite(file=[string], data=[any], charset=[string], createPath=[boolean])
Arguments
Argument
Type
Required
Description
Default
file
string
true
The string path of the file - either root relative or absolute
data
any
true
The string or binary byte array of the file content
charset
string
false
The charset encoding ( ignored for binary data )
UTF-8
createPath
boolean
false
false
Examples
Write a Temporary File
fileWrite( getTempFile( getTempDirectory(), "tempFile" ), "My Data" );
Additional Examples
filewrite( "filepath", "fileContent to be write" );
Related
Last updated
Was this helpful?