Generic I/O

John Goerzen jgoerzen at
Fri Oct 22 11:18:19 EDT 2004

On Friday 22 October 2004 10:05 am, Henning Thielemann wrote:
> On Fri, 22 Oct 2004, John Goerzen wrote:
> If all of these objects can be represented as Strings or at least as
> Lists in many cases you only need a function that reads or writes the
> complete disk object, such as readFile and writeFile. You can apply
> all string or list functions respectively on the contents of the file
> and lazy evaluation assures a streaming behaviour of the complete
> process. Though I'm afraid, seeking won't work this way.

That also won't work for bidirectional things, such as network 
communications, disk files opened read/write, gzip files, etc.

-- John

More information about the Libraries mailing list