lib/FileSystem.js
function writeFile(p, data, encoding) {
    var def = Q.defer();
    fs.writeFile(p, data, encoding, def.makeNodeResolver());
    return def.promise
}
function writeFile(p, data, encoding) {
    var def = Q.defer();
    fs.writeFile(p, data, encoding, def.makeNodeResolver());
    return def.promise
}
function writeFile ( p , data , encoding ) { var def = Q . defer ( ) ; fs . writeFile ( p , data , encoding , def . makeNodeResolver ( ) ) ; return def . promise }
Promise wrapper for fs.writeFile
@param p
Promise wrapper for fs . writeFile