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 2.9.1

Returns

ArrayBuffer

The file's contents as an ArrayBuffer.