From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id RAA14268; Fri, 13 Sep 2002 17:34:06 +0200 (MET DST) Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id RAA13846 for ; Fri, 13 Sep 2002 17:34:05 +0200 (MET DST) Received: from waco.inria.fr (waco.inria.fr [128.93.25.2]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id g8DFXw909004; Fri, 13 Sep 2002 17:33:58 +0200 (MET DST) Received: (from verlyck@localhost) by waco.inria.fr (8.11.1/8.11.1) id g8DFXwK30934; Fri, 13 Sep 2002 17:33:58 +0200 Date: Fri, 13 Sep 2002 17:33:58 +0200 Message-Id: <200209131533.g8DFXwK30934@waco.inria.fr> X-Authentication-Warning: waco.inria.fr: verlyck set sender to Bruno.Verlyck@inria.fr using -f To: rich@lithinos.com CC: caml-list@inria.fr In-reply-to: <000401c25ace$6896c7b0$0a00a8c0@stone> (rich@lithinos.com) Subject: Re: [Caml-list] Setting the EOL character.... From: Bruno.Verlyck@inria.fr References: <4D5CA086.356E9A2F.00958B05@netscape.net> <000401c25ace$6896c7b0$0a00a8c0@stone> Mime-Version: 1.0 (generated by tm-edit 7.106) Content-Type: text/plain; charset=US-ASCII Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk 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 while(true){ a_line = myStream.read_until("\000") deal_with_line(a_line) } 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, http://pauillac.inria.fr/cash/ Bruno. ------------------- 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