From: wester@ilt.fhg.de
To: caml-list@inria.fr
Subject: [Caml-list] Sys_error "Bad file descriptor"
Date: Mon, 9 Apr 2001 11:08:24 +0200 [thread overview]
Message-ID: <200104090908.LAA18865@ilt.fhg.de> (raw)
Hi,
I try to open a file with append mode. Opening and writing to the file
works but when I try to flush or close the file I get an error message:
let h_out = open_out_gen ~mode:[Open_append; Open_creat] ~perm:666 "f1.txt";;
Printf.fprintf h_out "%s" "something";;
close_out h_out;;
Uncaught exception: Sys_error "Bad file descriptor".
I'm running OCaml 3.1 on Windows NT 4.0. Any help is appreciated.
Rolf Wester
-------------------------------------
Rolf Wester
wester@ilt.fhg.de
-------------------
To unsubscribe, mail caml-list-request@inria.fr. Archives: http://caml.inria.fr
next reply other threads:[~2001-04-09 9:08 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-04-09 9:08 wester [this message]
2002-11-11 2:31 [Caml-list] Sys_error("Bad file descriptor") IKEDA Katsumi
2002-11-12 8:49 ` IKEDA Katsumi
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=200104090908.LAA18865@ilt.fhg.de \
--to=wester@ilt.fhg.de \
--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