From 78188d3edc78a38c0f8a917a30cb07dd432ec6a7 Mon Sep 17 00:00:00 2001 From: Vivek Date: Tue, 21 Jun 2022 19:22:50 +0530 Subject: [PATCH] adding comment --- command line.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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