SHARE
TWEET

NodeJS : Hapus File

stevennathaniel Jun 15th, 2016 77 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /**
  2.  * Created by StevenNathaniel on 16-Jun-16.
  3.  */
  4.  
  5. //source code untuk menghapus file dari direktori windows
  6.  
  7. const fs = require('fs');
  8.  
  9. fs.unlink("D:/StevenNathaniel/ProyekNodeJS/Webstorm1/test.txt", (err) => {
  10.     if (err) throw err;
  11.  
  12.     console.log('berhasil menghapus file');
  13. });
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top