Javascript File read

From FreeSWITCH Wiki
Jump to: navigation, search

Contents

Description

Reads a specified number of bytes into a buffer.

Synopsis

read(size)
  • size - the number of bytes to read

Example

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

See Also