The fs.open() method takes a "flag" as the second argument, if the flag is "w" for "writing", the specified file is opened for writing. If the file does not exist, an empty file is created.
_________________________
Source Code Here 👇👇👇👇👇👇😆😆😆
const fs = require('fs');
fs.open('myfile.txt', 'w', function (err){
if(err) throw err;
console.log('saved!');
});
___________________________
Playlist
Bash Script: • Bash Script
Notification: https://youtube.com/playlist?list=
PLuCejQtGUOQS4pwMOQTnju5x-CpeBUjoJ
Recycler View: • Recycler View
Termux Tutorial: • Termux Tutorial
Android Studio Erorr Fix: • Android Studio Erorr Fix
AIDE-IDE-for-Android-Java/android studio Apps: • AIDE-IDE-for-Android-Java/android stu...
Learn Python For free Hindi/Urdu: • Learn Python For free Hindi/Urdu
If there is any problem, let us know in the comment box
Follow My Facebook Page:
/ 132319595615417
Join My Facebook Group
https://www.facebook.com/groups/94732...