Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] Why do input* and readdir throw End_of_file ... annoying!
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Alan Post <apost@r...>
Subject: [Caml-list] Re: Why do input* and readdir throw End_of_file ... annoying!
In article <>, Richard Jones wrote:
> On Fri, Jun 06, 2003 at 01:49:55PM -0500, Brian Hurt wrote:
>> The problem with try/with is that it's way to easy to break tail recursion 
>> using try/with.  About every other week someone comes to the Ocaml 
>> beginners list where they are doing something like:
> What's a good way to read all the lines of a file into a list? I
> can put it into the OCaml tutorial I'm writing.

Use ExtLib, of course.  :)

List.of_enum (input_enum chan)

To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: