Skip to content

Instantly share code, notes, and snippets.

@giltayar
Created November 20, 2017 10:16
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save giltayar/a8b5c3685dc2695ce33130ae763b7267 to your computer and use it in GitHub Desktop.
fs.readFile('source.txt', (_, content) => {
fs.writeFile('target.txt', content, () => {
console.log('done!')
})
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment