function appendTextFile(filename,text){
var b = require('bonescript');
    b.readTextFile(filename, printStatus);
function printStatus(x) {
    if (x.err===null) textout=x.data + text;
    else textout = text;
    b.writeTextFile(filename,textout);
}
}
  
// and if you want time tags, e.g. for an html log file
function appendTagged(filename,text){
    appendTextFile(filename,'<br>\n'+Date().substr(4,21) + text)
}
  

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to