Javascript FileIO read

From FreeSWITCH Wiki
Jump to: navigation, search

Contents

Description

Reads data from a file.

Synopsis

read(size)
  • size - number of bytes to read into a buffer

Example

fd = new FileIO("/tmp/blah","r");
fd.read(2048);
console_log(fd.data());

See Also