Asynchronously reads a file and returns a promise of its contents.

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

Storage.read("myfile.txt")
    .then(function(contents) {
        console.log(contents);
    }, function(error) {
        console.log(error);
    });

Location

Namespace
Fuse.Storage
Package
Fuse.Storage 2.9.1

Returns

Promise

A promise of the file's contents.