var readFile = require('./readFile').stream
var writeFile = require('./writeFile').stream

// function dupe (from, to) {
//   fs.createReadStream(from).pipe(fs.createWriteStream(to))
// }

function dupe (from, to) {
  readFile(from).pipe(writeFile(to))
}

module.exports = dupe

@@ -1,98 +1,74 @@
-var readFile = require('./readFile').stream%0Avar writeFile = require('./writeFile').stream%0A%0A// 
+// Duplicate a file within the same directory%0Avar fs = require('fs')%0A%0A
 func
@@ -90,19 +90,16 @@
 , to) %7B%0A
-// 
   fs.cre
@@ -153,78 +153,8 @@
 o))%0A
-// %7D%0A%0Afunction dupe (from, to) %7B%0A  readFile(from).pipe(writeFile(to))%0A
 %7D%0A%0Am

revert file/dupe.js back to original