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 LAA22480; Mon, 9 Apr 2001 11:08:36 +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 LAA22474 for ; Mon, 9 Apr 2001 11:08:35 +0200 (MET DST) Received: from mailgw1.fhg.de (mailgw1.fhg.de [153.96.1.2]) by nez-perce.inria.fr (8.11.1/8.10.0) with ESMTP id f3998Yf09481 for ; Mon, 9 Apr 2001 11:08:34 +0200 (MET DST) Received: from ilt.fhg.de (ilt.ilt.fhg.de [153.96.180.2]) by mailgw1.fhg.de (8.11.1/8.11.1) with ESMTP id f3998Qh13100 for ; Mon, 9 Apr 2001 11:08:27 +0200 (MET DST) Received: from eent230 (iltpc099.ilt.fhg.de [192.102.148.99]) by ilt.fhg.de (8.9.3/8.9.3) with SMTP id LAA18865 for ; Mon, 9 Apr 2001 11:08:28 +0200 (MET DST) Message-Id: <200104090908.LAA18865@ilt.fhg.de> From: wester@ilt.fhg.de To: caml-list@inria.fr Date: Mon, 9 Apr 2001 11:08:24 +0200 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: [Caml-list] Sys_error "Bad file descriptor" X-mailer: Pegasus Mail for Win32 (v3.01d) Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk 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