add ::IO to write methods
Revert "use peek to make EachLine iterate in phase with file position. fixes #2051"

This reverts commit 913071f47ea7a99b822642c2c20dfadef1f9aed4.
Merge branch 'master' of github.com:JuliaLang/julia