Skip to content

Commit

Permalink
creating a file using command line
Browse files Browse the repository at this point in the history
  • Loading branch information
codingXpert committed Jun 21, 2022
1 parent ae41b5a commit 172e35d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions apple.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
this is fruit
3 changes: 3 additions & 0 deletions command line.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
const fs = require('fs');
var input = process.argv;
fs.writeFileSync(input[2] , input[3]);

0 comments on commit 172e35d

Please sign in to comment.