writeLine
Stream objects
Stream objects are returned from the fs.open method.
Examples
var fs = require('fs');
var stream = fs.open('output.txt', 'w');
stream.writeLine('Hello');
stream.writeLine('world!');
stream.close();
stream = fs.open('output.txt', 'r');
console.log(stream.read());
stream.close();
phantom.exit();