mardi 3 février 2015

In a node script how can I monitor a file for changes and get the updated content?


Vote count:

0




I'm writing a script to monitor a file. Whenever the file changes it needs to print to the appended content to the console. I'm dabbling with fs.createReadStream but it doesn't seem to send anymore data over the stream when the file is appended to. I just need someone to point me in the right direction :)



asked 57 secs ago

Alex Ford

17.2k






In a node script how can I monitor a file for changes and get the updated content?

Aucun commentaire:

Enregistrer un commentaire