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 NAA13515; Thu, 29 Apr 2004 13:51:49 +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 NAA13522 for ; Thu, 29 Apr 2004 13:51:48 +0200 (MET DST) Received: from rabelais.socialtools.net (rabelais.socialtools.net [81.2.94.243]) by nez-perce.inria.fr (8.12.10/8.12.10) with ESMTP id i3TBpljq005337 for ; Thu, 29 Apr 2004 13:51:47 +0200 Received: by rabelais.socialtools.net (Postfix, from userid 108) id 3AD8D232DF; Thu, 29 Apr 2004 12:51:47 +0100 (BST) Received: from socialtools.net (chaucer.socialtools.net [81.2.94.242]) by rabelais.socialtools.net (Postfix) with ESMTP id 586C1232DB; Thu, 29 Apr 2004 12:51:46 +0100 (BST) Message-ID: <4090EC37.2070200@socialtools.net> Date: Thu, 29 Apr 2004 12:51:19 +0100 From: Benjamin Geer User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040113 X-Accept-Language: en-gb, en, fr, it MIME-Version: 1.0 To: Richard Jones Cc: caml-list@inria.fr Subject: Re: [Caml-list] Re: Common IO structure References: <016401c42bc4$b6438840$19b0e152@warp> <20040428.004358.45522587.yoriyuki@mbg.ocn.ne.jp> <016501c42c73$24e64b30$ef01a8c0@warp> <20040428.015800.126758722.yoriyuki@mbg.ocn.ne.jp> <408EEE3E.7050008@socialtools.net> <20040428034415.GB19564@complete.org> <40902265.9040702@socialtools.net> <20040428214442.GE10198@excelhustler.com> <20040428224130.GA30256@redhat.com> In-Reply-To: <20040428224130.GA30256@redhat.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on rabelais.socialtools.net X-Spam-Status: No, hits=-4.9 required=5.0 tests=BAYES_00 autolearn=ham version=2.63 X-Miltered: at nez-perce by Joe's j-chkmail ("http://j-chkmail.ensmp.fr")! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 encodings:01 unicode:01 unicode:01 parser:02 parser:02 eof:02 bytes:02 financial:96 string:03 string:03 wrote:03 data:03 structure:06 tend:06 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Richard Jones wrote: > * What programs do people need to write? Most of what I do involves financial messages, which tend to be small, and come in many different encodings and formats. So what I usually need to do is read until EOF (from a file, a socket or whatever), convert the data to a Unicode string, and run it through some kind of parser (e.g. an XML parser). Going the other way, I have a Unicode string, and I just want to convert it to bytes and write it to a file or socket. That covers 90% of what I do with I/O. Ben ------------------- 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