For some reason I cannot fathom out how to append text to a text file already contating data I need
I have currently got the script just console.log my data.
casper.then(function() {
    if (this.exists('.srBtnRed')) {
        this.echo(casper.cli.get(0) + "|" + casper.cli.get(1) + " Up Impossible !!");
        this.exit();
    }
});
Can anybody edit the above code to save the result to the next clean line of results.txt
Also I do have require('fs') in my script .
 
     
     
    