Javascript File writeAll

From FreeSWITCH Wiki
Jump to: navigation, search

Contents

Description

Writes an array to a file.

Synopsis

writeAll(data)
  • data - an array of data to write

Example

var data = new Array("moo","ojnk");
var fd = new File("/tmp/blah");
fd.open("write");
fd.writeAll(data);

See Also