Javascript File readAll

From FreeSWITCH Wiki
Jump to: navigation, search

Contents

Description

Reads the entire contents of a file into a buffer - watch memory allocation on this so you dont have 1000 calls all trying to read in a 100MB file.

Synopsis

readAll()

Example

var fd = new File("/tmp/blah");
var buff = fd.readAll();

See Also