title: Write a line into a .txt file with Node.js
body: <p>I want to use Node.js to create a simple logging system which prints a line before the past line into a .txt file. However, I don't know how the file system functionality from Node.js works.</p>
  <p>Can someone explain it?</p>