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 1.9.0

Returns

boolean

true if the write was successful, false otherwise