From: Robert Longeon <Robert.Longeon@cnrs-dir.fr>
To: caml-list@inria.fr
Subject: [Caml-list] Comment_rediriger_les_entrees/sorties_standards ?
Date: Wed, 02 May 2001 17:20:55 +0200 [thread overview]
Message-ID: <4.2.0.58.20010502171302.00dba2c0@cezanne.auteuil.cnrs-dir.fr> (raw)
In-Reply-To: <200105021455.f42EtjL25069@waco.inria.fr>
At 16:55 02/05/01 +0200, vous avez écrit:
>On ne peut pas sans modifier io.c (le run-time caml). Je l'ai
>implémenté dans un autre cadre, mais extraire un patch limité à cette
>modification est trop casse-pieds. Peut-être dans une future
>version...
Merci ... c'est ce que malheureusement, je craignais !
>Ceci dit, (std_out n'est pas stdout, et) si
> output_string std_out "toto"
>laisse le fichier vide, c'est parce qu'il faut faire
> flush std_out
>ou fermer std_out (ce qui fait flush).
Oui, c'est ce que j'ai fait :
#close_out std_out ;;
close_out stdout ;;
let std_out = open_out "essai.txt" ;;
- : unit = ()
#- : unit = ()
#std_out : out_channel = <abstr>
#flush std_out ;; close_out std_out ;;
- : unit = ()
#- : unit = ()
#
... et le fichier = 0 k !
Merci aussi à Maxence.
Robert.
-------------------
To unsubscribe, mail caml-list-request@inria.fr. Archives: http://caml.inria.fr
next prev parent reply other threads:[~2001-05-02 15:20 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-05-02 12:42 [Caml-list] Comment rediriger les entrées/sorties standards ? Robert Longeon
2001-05-02 14:49 ` [Caml-list] =?iso-8859-1?Q?Comment_rediriger_les_entrées/sorties_?= " Maxence Guesdon
[not found] ` <200105021455.f42EtjL25069@waco.inria.fr>
2001-05-02 15:20 ` Robert Longeon [this message]
2001-05-03 6:21 ` [Caml-list] Comment rediriger les entrées/sorties " Bruno Pagano
2001-05-03 9:51 ` [Caml-list] " Xavier Leroy
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=4.2.0.58.20010502171302.00dba2c0@cezanne.auteuil.cnrs-dir.fr \
--to=robert.longeon@cnrs-dir.fr \
--cc=caml-list@inria.fr \
/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;
as well as URLs for NNTP newsgroup(s).