Skip to content

Commit

Permalink
adding comment
Browse files Browse the repository at this point in the history
  • Loading branch information
codingXpert committed Jun 21, 2022
1 parent 172e35d commit 78188d3
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion command line.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
const fs = require('fs');
var input = process.argv;
fs.writeFileSync(input[2] , input[3]);
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"

0 comments on commit 78188d3

Please sign in to comment.