share a Inheritable file with other process

burpicane

New member
Joined
Jan 18, 2009
Messages
3
Programming Experience
Beginner
Hello,

I'm having a program which creates a simple text file with the IO.FileShare setted to Inheritable so other processes can't read/edit the file. But during the programm I'm starting up another process which actually has to read that file also... Is it possible to somehow 'share' that file or add an 'exception' for that process. I have been lokoing a bit around google but didn't really find it. (the file will only exists for a few seconds btw so it's not that it has to be shared for hours)
 
Given that youre developing both apps, I suggest that you make the second app ask your app for the info, that way the first app can keep the file locked. Read up on Remoting
 

Latest posts

Back
Top