1.

How Will You Close A File Using Node?

Answer»

Following is the syntax of one of the methods to close an OPENED file:
fs.close(fd, callback)
PARAMETERS
Here is the description of the parameters USED:
fd - This is the file DESCRIPTOR returned by file fs.open() method.
callback - This is the callback function which GETS no arguments other than a possible exception are given to the completion callback.

Following is the syntax of one of the methods to close an opened file:
fs.close(fd, callback)
Parameters
Here is the description of the parameters used:
fd - This is the file descriptor returned by file fs.open() method.
callback - This is the callback function which gets no arguments other than a possible exception are given to the completion callback.



Discussion

No Comment Found