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
RE: [Caml-list] Setting the EOL character....
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2002-09-13 (15:34)
From: Bruno.Verlyck@i...
Subject: Re: [Caml-list] Setting the EOL character....
   From: "Richard Lyman" <>
   Date: Thu, 12 Sep 2002 20:36:45 -0600

   ... so then - there's no OCaml concept of a global EOL variable, or
   method that deals with reading in from a stream until the EOL??

   I was hoping more for something along the lines of -
    myStream = Unix.accepted_socket_stream
	a_line = myStream.read_until("\000")
FWIW, Cash supports reading a line terminated by any char from a set
of chars.  If that's your only need, Cash may be overkill, except if
you have a performance bottleneck here: its read_line should be at
least as fast as Pervasives.read_line.  Anyway,

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