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 MAA18273; Thu, 15 Jul 2004 12:28:48 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f 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 MAA18461 for ; Thu, 15 Jul 2004 12:28:47 +0200 (MET DST) Received: from ppsw-6.csi.cam.ac.uk (ppsw-6.csi.cam.ac.uk [131.111.8.136]) by nez-perce.inria.fr (8.12.10/8.12.10) with ESMTP id i6FASkEV009934 for ; Thu, 15 Jul 2004 12:28:46 +0200 Received: from zone-7.jesus.cam.ac.uk ([131.111.243.37]:34823 helo=pooh.jc) by ppsw-6.csi.cam.ac.uk (smtp.hermes.cam.ac.uk [131.111.8.156]:465) with esmtp (SSLv3:RC4-MD5:128) (Exim 4.34) id 1Bl3Tn-0001qO-1I for caml-list@inria.fr; Thu, 15 Jul 2004 11:28:43 +0100 From: Daniel Andor To: caml-list@inria.fr Subject: Re: [Caml-list] assertions or exceptions? Date: Thu, 15 Jul 2004 11:28:42 +0100 User-Agent: KMail/1.6.2 References: <7f8e92aa04071501035091cbe9@mail.gmail.com> <20040715101826.GA10062@redhat.com> In-Reply-To: <20040715101826.GA10062@redhat.com> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200407151128.42758.da209@cam.ac.uk> X-Cam-ScannerInfo: http://www.cam.ac.uk/cs/email/scanner/ X-Cam-AntiVirus: No virus found X-Cam-SpamDetails: Not scanned X-Miltered: at nez-perce with ID 40F65C5E.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 extlib:01 sourceforge:01 assertions:01 eof:02 exceptions:04 exceptions:04 functions:05 std:05 daniel:06 think:11 avoid:14 there:16 file:18 possible:18 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk > > 3. Is it possible to avoid using exceptions and read a text file > > line-by-line until EOF? > > There are functions in ExtLib to do this, I think. http://ocaml-lib.sourceforge.net/doc/Std.html ------------------- 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