I think nodejs's appendFile[1] will do just what you want. --Mark
[1] https://nodejs.org/dist/latest-v4.x/docs/api/fs.html#fs_fs_appendfile_file_data_options_callback On Wednesday, March 2, 2016 at 4:26:19 PM UTC-5, [email protected] wrote: > > > 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.
