Hi<br><br>So far the windows API seems to work for me. Currently I'm still struggling to not<br>write garbage to the file but the shared access works now. Does anyone have an<br>example how to use it (e.g. the implementation of hPutStr on windows or something,
<br>i did not find it in the ghc source code)?<br><br>I tried to use Streams before but without the windows API.<br><br>regards<br><br>Stefan<br><br><br><div><span class="gmail_quote">2006/10/11, Bulat Ziganshin &lt;<a href="mailto:bulat.ziganshin@gmail.com">
bulat.ziganshin@gmail.com</a>&gt;:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hello Esa,<br><br>Wednesday, October 11, 2006, 2:13:49 PM, you wrote:
<br><br>&gt; Using base-package's IO-system, that is not possible as far as I know.<br>&gt;&nbsp;&nbsp;The flag you need to pass CreateFile (api call which is used to open<br>&gt; practically all files) is FILE_SHARE_READ.<br><br>&gt; You can find these in Win32-package, but files opened via raw api
<br>&gt; bindings don't work well together with base-packages IO-system (ie,<br>&gt; you need to read and write using rawish api calls.)<br><br>as usual, Streams library may be used to solve this problem, although<br>this will need some additional programming. please write me if
<br>win32read/win32write API is inappropriate dor your needs<br><br>--<br>Best regards,<br> Bulat&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;mailto:<a href="mailto:Bulat.Ziganshin@gmail.com">Bulat.Ziganshin@gmail.com</a><br><br></blockquote>
</div><br>