diff --git a/command line.js b/command line.js index 934525b..7e84764 100644 --- a/command line.js +++ b/command line.js @@ -1,3 +1,11 @@ const fs = require('fs'); var input = process.argv; -fs.writeFileSync(input[2] , input[3]); \ No newline at end of file +fs.writeFileSync(input[2] , input[3]); + + + + +// in terminal write file_name from where we are creating new file as follows +// node '.\command line.js' apple.txt 'this is fruit' + +// And this will create a new file with name apple.txt and data inside it "this is fruit" \ No newline at end of file