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