Given a directory of javascript files:
1. Extract all comments contained within /* */ and stream them into a new "comments.txt" file.
2. Delete the comment portion from the original file.
3. Use any libraries you like.
Example
_________________________________
**abc.js:**
log('hi') //hi
/* random comments to be extracted */
/* random comments to be extracted */
/* random comments to be extracted */
_________________________________
**Output abc.js:**
log('hi') //hi
_________________________________
**Output comments.txt:**
random comments to be extracted
random comments to be extracted
random comments to be extracted