is there a way to open a file for input that is already opened for output by another task?
What I'm looking for is an equivalent to
OPEN "BLA" FOR INPUT LOCK SHARED AS #1
as can be used in other Basic dialects...

Thanks already
i have studied the api for all the flags while using CreateFile...... hint to fredLemming wrote:Well,
I've found myself a workaround...![]()
The Fastfile library does the trick, it just opens the file and doesn't care about it being opened for write. Great!
You can try the SleepEx_() API function to enter an alertable wait state.Applications must not read from nor write to the input buffer that a read operation is using until the read operation completes. A premature access to the input buffer may lead to corruption of the data read into that buffer.