Javascript File readAll
From FreeSWITCH Wiki
Contents |
[edit]
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 ...
[edit]
Synopsis
readAll()
[edit]
Example
var fd = new File("/tmp/blah");
var buff = fd.readAll();
[edit]
