Use Streams in TextFile.

Depends on DMDirc/Plugins#161