function init() {
  fs.truncate("writetothisfile.md", 0, () => {
    console.log("");
  });
}
// Truncating the file to zero sets it as empty.
Truncating the file to zero sets it as empty.
Truncating the file to zero sets it as empty .
function init() {
  fs.truncate("writetothisfile.md", 0, () => {
    console.log("");
  });
}
function init ( ) { fs . truncate ( "writetothisfile.md" , 0 , ( ) => { console . log ( "" ) ; } ) ; }
Truncating the file to zero sets it as empty.
Truncating the file to zero sets it as empty .