Lines Matching refs:filehandle
163 If a {FileHandle} is not closed using the `filehandle.close()` method, it will
178 #### `filehandle.appendFile(data[, options])`
199 Alias of [`filehandle.writeFile()`][].
203 [`filehandle.writeFile()`][].
205 #### `filehandle.chmod(mode)`
216 #### `filehandle.chown(uid, gid)`
228 #### `filehandle.close()`
242 let filehandle;
244 filehandle = await open('thefile.txt', 'r');
246 await filehandle?.close();
250 #### `filehandle.createReadStream([options])`
272 omitted or `undefined`, `filehandle.createReadStream()` reads sequentially from
317 #### `filehandle.createWriteStream([options])`
345 #### `filehandle.datasync()`
357 Unlike `filehandle.sync` this method does not flush modified metadata.
359 #### `filehandle.fd`
367 #### `filehandle.read(buffer, offset, length, position)`
391 #### `filehandle.read([options])`
420 #### `filehandle.read(buffer[, options])`
447 #### `filehandle.readableWebStream(options)`
502 #### `filehandle.readFile(options)`
521 If one or more `filehandle.read()` calls are made on a file handle and then a
522 `filehandle.readFile()` call is made, the data will be read from the current
526 #### `filehandle.readLines([options])`
542 See [`filehandle.createReadStream()`][] for the options.
566 #### `filehandle.readv(buffers[, position])`
585 #### `filehandle.stat([options])`
601 #### `filehandle.sync()`
613 #### `filehandle.truncate(len)`
632 let filehandle = null;
634 filehandle = await open('temp.txt', 'r+');
635 await filehandle.truncate(4);
637 await filehandle?.close();
646 #### `filehandle.utimes(atime, mtime)`
659 #### `filehandle.write(buffer, offset[, length[, position]])`
689 It is unsafe to use `filehandle.write()` multiple times on the same file
691 scenario, use [`filehandle.createWriteStream()`][].
697 #### `filehandle.write(buffer[, options])`
712 Similar to the above `filehandle.write` function, this version takes an
716 #### `filehandle.write(string[, position[, encoding]])`
743 It is unsafe to use `filehandle.write()` multiple times on the same file
745 scenario, use [`filehandle.createWriteStream()`][].
751 #### `filehandle.writeFile(data, options)`
781 It is unsafe to use `filehandle.writeFile()` multiple times on the same file
784 If one or more `filehandle.write()` calls are made on a file handle and then a
785 `filehandle.writeFile()` call is made, the data will be written from the
789 #### `filehandle.writev(buffers[, position])`
816 #### `filehandle[Symbol.asyncDispose]()`
824 An alias for `filehandle.close()`.
1743 [`fs.createWriteStream()`][] or [`filehandle.createWriteStream()`][].
7955 A call to `fs.ftruncate()` or `filehandle.truncate()` can be used to reset
7974 [`filehandle.createReadStream()`]: #filehandlecreatereadstreamoptions
7975 [`filehandle.createWriteStream()`]: #filehandlecreatewritestreamoptions
7976 [`filehandle.writeFile()`]: #filehandlewritefiledata-options