Synchronously reads a file and returns an ArrayBuffer with its contents.

Example

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

var data = FileSystem.readBufferFromFileSync("myfile.txt");

Location

Namespace
Fuse.FileSystem
Package
Fuse.FileSystem 1.9.0

Returns

ArrayBuffer

The file's contents as an ArrayBuffer.