Synchrounously writes data to a file inside the application folder.

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

var success = Storage.writeSync("myfile.txt", "Hello from Fuse!");
if(success) {
    console.log("Successfully wrote to file");
}
else {
    console.log("An error occured!");
}

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

Location

Namespace
Fuse.Storage
Package
Fuse.Storage 2.9.1

Returns

boolean

true if the write was successful, false otherwise