commandbox.system.modules_app.system-commands.commands

Class fileWrite

lucee.Component
    extended by 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}

Class Attributes:
  • synchronized : false
  •  
  • accessors : false
  •  
  • persistent : false
  •  
  • excludefromhelp : true
  •  
    Method Summary
    any run(any contents='', string file)
     
    Methods inherited from class lucee.Component
    None

    Method Detail

    run

    public any run(any contents='', string file)

    Parameters:
    contents - Contents to write to the file
    file - File to write to