caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Shin-Cheng Mu <scmu@iis.sinica.edu.tw>
To: caml-list@inria.fr
Subject: Opening a file for both reading and writing
Date: Thu, 11 Feb 1999 18:00:21 +0800	[thread overview]
Message-ID: <36C2AA353A1.0693SCMU@iis.sinica.edu.tw> (raw)

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




             reply	other threads:[~1999-02-11 12:28 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-02-11 10:00 Shin-Cheng Mu [this message]
1999-02-18 21:06 ` 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=36C2AA353A1.0693SCMU@iis.sinica.edu.tw \
    --to=scmu@iis.sinica.edu.tw \
    --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).