Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
Opening a file for both reading and writing
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Shin-Cheng Mu <scmu@i...>
Subject: Opening a file for both reading and writing
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

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.


Shin-Cheng Mu