Synchronously reads a file from the application bundle

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

var contents = Bundle.readSync("someData.json");
console.log(contents);

Warning: This call will block until the operation is finished. If you are reading large amounts of data, use read() instead.

Location

Namespace
FuseJS
Package
FuseJS 1.9.0

Returns

String

The contents of the file