Javascript File position

From FreeSWITCH Wiki
Jump to: navigation, search

Contents

Description

The current position in the file.

Synopsis

position

Example

var fd = new File("/tmp/blah");
fd.open("read");
fd.seek(10);
console_log("We are at offset " + fd.position + "\n");
fd.close()

See Also