write_file

Function

ArgDescriptionType
dataThe data to writestring (required)
destThe destination file to write.string (required)
permissionsRequired permissions (e.g. ‘x’).string
appendIf true we append to the target file otherwise truncate itbool
create_directoriesIf true we ensure the destination directories existbool

Required permissions:FILESYSTEM_WRITE FILESYSTEM_READ

Description

Writes a string onto a file.

This VQL function is a convenience wrapper to the copy() function.