Name | Type | Required | Default | Hint |
contents | string | true | Contents to write to the file | |
file | string | true | File to write to |
Write a file, overwriting it if it exists.
fileWrite "My file contents" file.txtYou can pipe text into it.
echo "My file contents" | fileWrite file.txtThis command is also used internally for redirection when you use the > symbol.
dir > fileList.txt