Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: "Hezekiah M. Carty" <hez@0ok.org>
To: Martin DeMello <martindemello@gmail.com>
Cc: OCaml List <caml-list@yquem.inria.fr>
Subject: Re: [Caml-list] wrapping a string in an in_channel
Date: Sun, 5 Jan 2014 09:23:58 -0500	[thread overview]
Message-ID: <CAMfPyLBs3XO8GUmm0-Bhk1eY-P31=h=GZSrWonkoXiUDuKNxOQ@mail.gmail.com> (raw)
In-Reply-To: <CAFrFfuGJ1RfPo9vOx_psAszQO-Lq=J351qC+TGeWAZzv+=aJCQ@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 357 bytes --]

On Jan 5, 2014 3:23 AM, "Martin DeMello" <martindemello@gmail.com> wrote:
>
> Does OCaml have any equivalent to ruby's StringIO, to wrap an
> in_channel around a string and then treat it as if it were a file?
>
> martin
>

Batteries provides something similar with its BatIO.input_string function.
It returns the Batteries equivalent to an in_channel.

Hez

[-- Attachment #2: Type: text/html, Size: 513 bytes --]

  parent reply	other threads:[~2014-01-05 14:24 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-05  8:23 Martin DeMello
2014-01-05  9:49 ` Gerd Stolpmann
2014-01-05 14:23 ` Hezekiah M. Carty [this message]
2014-01-06 10:32 ` John Whitington
2014-01-07 21:02 ` Stéphane Glondu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAMfPyLBs3XO8GUmm0-Bhk1eY-P31=h=GZSrWonkoXiUDuKNxOQ@mail.gmail.com' \
    --to=hez@0ok.org \
    --cc=caml-list@yquem.inria.fr \
    --cc=martindemello@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox