[Haskell-cafe] Windows: openFile gives permission denied when file in use
aslatter at gmail.com
Thu Dec 29 05:29:54 CET 2011
On Wed, Dec 28, 2011 at 3:52 PM, Michael Snoyman <michael at snoyman.com> wrote:
> Hi all,
> I just received a bug report from a client that, when an input file is
> open in FrameMaker, my program gives a "permission denied error". This
> bug is reproducible with a simple Haskell program:
This bug and its discussion is similar, but not identical:
> import System.IO
> main = do
> putStrLn "here1"
> h <- openFile "filename.txt" ReadMode
> putStrLn "here2"
> I tried writing a simple C program using fopen, and it ran just fine.
> Does anyone have experience with this issue, and know of a workaround?
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
More information about the Haskell-Cafe