Javascript File seek

From FreeSWITCH Wiki
Jump to: navigation, search

Contents

Description

Sets the file pointer to a specified position in a file.

Synopsis

seek(offset)
  • offset - the byte offset to seek to

Example

var fd = new File("/tmp/blah");
fd.open("read");
fd.seek(1024);

See Also