1.

How Will You Delete A File Using Node?

Answer»

Following is the syntax of the method to delete a file:
fs.unlink(path, CALLBACK)
Parameters
Here is the description of the parameters USED:
path - This is the file NAME including path.
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 the method to delete a file:
fs.unlink(path, callback)
Parameters
Here is the description of the parameters used:
path - This is the file name including path.
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