InterviewSolution
Saved Bookmarks
| 1. |
How will you truncate a file using Node? |
|
Answer» Following is the syntax of the method to truncate an opened file − fs.ftruncate(fd, len, callback) ParametersHere is the description of the parameters used:
|
|