Synchrounously reads data from a file inside the application folder.

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

var contents = Storage.readSync("myfile.txt");
console.log(contents);

Warning: This call will block until the operation is finished. Use read() if you are reading large amounts of data.

Location

Namespace
Fuse.Storage
Package
Fuse.Storage 1.11.2

Returns

String

The contents of the file