lucee.Component
commandbox.system.modules_app.system-commands.commands.fileWrite
Write a file, overwriting it if it exists. . {code:bash} fileWrite "My file contents" file.txt {code} . You can pipe text into it. . {code:bash} echo "My file contents" | fileWrite file.txt {code} . This command is also used internally for redirection when you use the > symbol. . {code:bash} dir > fileList.txt {code}
| Method Summary | |
|---|---|
any
|
run(any contents='', string file)
|
| Methods inherited from class lucee.Component |
|---|
| None |
| Method Detail |
|---|
contents - Contents to write to the filefile - File to write to