Newbie help: JS - reference external txt file
<p>I'm working my way through the curriculum at CodeAcademy and it's going along well.</p>

<p>However, at work I have a project that would benefit from some scripting (sooner rather than later), and I think I have all the elements covered, except for the ability to reference content contained in an external log file.</p>

<p>In detail: I need to create a script to send out an email on the number of uploads made to our FTP server on a per-username basis.  The FTP server puts out a daily log file, and I have a Windows batch script right now that pulls the keyword STOR, counts it, and emails the number (with some text thrown in to make it make a little more sense).  Now they want this done on a per-username basis, which will require a little more granularity and the batch script becomes increasingly less efficient.  I thought it was time to put my new js skills to use.  I just need to find a way to reference keywords in the log file.  I'm familiar with node.js, which I imagine I will need to use to run the script, so that part is fine.  I just need whatever syntax is needed to pull in the content from the log file.  I wouldn't worry about translating the email output over to js at this point.  If I can just parse this to a text file, then I can just point my existing batch file to that instead (minus the part where it counts the keywords, which would be done by the js script).  Any suggestions?  Thanks!</p>
