From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from weis@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id NAA14212 for caml-redistribution; Thu, 11 Feb 1999 13:28:14 +0100 (MET) 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 KAA17025 for ; Thu, 11 Feb 1999 10:54:44 +0100 (MET) Received: from iiserv.iis.sinica.edu.tw (iiserv.iis.sinica.edu.tw [140.109.20.250]) by nez-perce.inria.fr (8.8.7/8.8.7) with ESMTP id KAA25400 for ; Thu, 11 Feb 1999 10:54:40 +0100 (MET) Received: from liangpc (liangpc [140.109.22.139]) by iiserv.iis.sinica.edu.tw (8.8.8/8.7.5) with SMTP id SAA15590 for ; Thu, 11 Feb 1999 18:00:38 +0800 (CST) Date: Thu, 11 Feb 1999 18:00:21 +0800 From: Shin-Cheng Mu To: caml-list@inria.fr Subject: Opening a file for both reading and writing Message-Id: <36C2AA353A1.0693SCMU@iis.sinica.edu.tw> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Mailer: Becky! ver 1.24.16 Sender: weis Is it allowed to open a file for both reading and writing? I opened the same file for reading and writing in 2 seperate channels. Some anomalies happened, e.g. reading from a position after overwriting some old data doesn't get the newly written value. So if I want read/write file access, is there a simple way to do so besides using UNIX module? I prefer the core library because Marshalling works better with standard channel library. Thanks. sincerely, Shin-Cheng Mu