Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] How to read three integers from a text-file... ?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Chris Hecker <checker@d...>
Subject: pervasives (was: Re: [Caml-list] How to read three integers from a text-file... ?)

I was about to answer, "why not just use read_int in a loop from the 
in_channel?", but then I looked and it's only defined on stdin (as is 
read_float).  read_line has input_line, but the others aren't 
symmetric.  Can we fix this and add input_int and input_float to 
Pervasives?  Relatively minor, but annoying to emulate.

Chris

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners