Asynchronously writes to a file.

var Storage = require("FuseJS/Storage");

Storage.write("myfile.txt", "Hello from Fuse!")
    .then(function(succeeded) {
        if(succeeded) {
            console.log("Successfully wrote to file");
        }
        else {
            console.log("Couldn't write to file.");
        }
    });

Location

Namespace
Fuse.Storage
Package
Fuse.Storage 2.9.1

Returns

Promise

A promise of a boolean, which will be true if the write succeeded.