Version française
Home     About     Download     Resources     Contact us    
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
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