commandbox.system.modules_app.system-commands.commands

Class fileAppend

lucee.Component
    extended by commandbox.system.modules_app.system-commands.commands.fileAppend

Append to existing text in a file. Will add a newline automatically . {code:bash} fileAppend "My new line" file.txt {code} . You can pipe text into it. . {code:bash} echo "My new line" | fileAppend file.txt {code} . This command is also used internally for redirection when you use the >> symbol. . {code:bash} echo "Step 3 complete" >> log.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 append to the file
    file - File to append to