ftell method

int ftell(
  1. FILE stream
)

Returns the current file position of the stream.

Implementation

int ftell(FILE stream) {
  try {
    return stream._raf.positionSync();
  } catch (e) {
    return -1;
  }
}