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 2.9.1

Returns

String

The contents of the file