Writes the contents of a string or binary data to a file
FileWrite(file=[string], data=[any], charset=[string], createPath=[boolean])
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 |
- ContractPath
- CreateTempDirectory
- CreateTempFile
- DirectoryCopy
- DirectoryCreate
- DirectoryDelete
- DirectoryExists
- DirectoryList
- DirectoryMove
- DirectoryRename
- ExpandPath
- FileAppend
- FileClose
- FileCopy
- FileDelete
- FileExists
- FileGetMimeType
- FileInfo
- FileIsEOF
- FileMove
- FileOpen
- FileRead
- FileReadBinary
- FileReadLine
- FileSeek
- FileSetAccessMode
- FileSetAttribute
- FileSetLastModified
- FileSkipBytes
- FileWriteLine
- GetCanonicalPath
- GetDirectoryFromPath
- GetFileInfo
- getTempFile