How to reading a file when the file is already opened for write

C

chinthamani

Hai
I want to open a file and read when the same file is already opened for
writing. I need to do the reading process simultaniously when the file is
being writen.

Regards.
S.Vinodh Noel
Software Engineer
(Bells Softech Limited)
Bangalore.
 
A

Ajith Menon

Hi Chinthamani,

Even I had faced a similar problem, where a single file had to be
shared between many users, if they all request an operation together.

My problem was solved by using "Stream". I created the MemoryStream as
soon as two users requested for the same file. The MemoryStream can be
read together by multiple users.

You can see the documentation for MemoryStream for more details.

Regards,
Ajith
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top