Skip to content
Please update to the latest release 0.77.2 to address Multiple CVEs.
write_file

write_file

Function
Arg Description Type
data The data to write string (required)
dest The destination file to write. string (required)
permissions Required permissions (e.g. ‘x’). string
append If true we append to the target file otherwise truncate it bool
create_directories If true we ensure the destination directories exist bool

Required permissions: FILESYSTEM_WRITE, FILESYSTEM_READ

Description

Writes a string onto a file.

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