seek() equivalent in javascript/node.js? -
i m trying read files fs module node.js. since lack tot of function m used (fseek(), getline()...), m creating module them back. (a node.js copy of c stdio.h).
my simple question is:
does seek() exist in other name or need remplement every function have it?
in node.js seek
, read
functions one. when use fs.read
function, there parameter called position
, works "seek position".
if want write file, function fs.write
has position
parameter.
check docs here: https://nodejs.org/api/fs.html#fs_fs_read_fd_buffer_offset_length_position_callback
Comments
Post a Comment