server.js writes line by line, not as one huge chunk