Synchronously writes an ArrayBuffer to a file.

Example

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

var data = new ArrayBuffer(4);
var view = new Int32Array(data);
view[0] = 0x1337;

FileSystem.writeBufferToFileSync(FileSystem.dataDirectory + "/" + "myfile.txt", data);

Location

Namespace
Fuse.FileSystem
Package
Fuse.FileSystem 2.9.1