[Haskell] [Haskell - I/O] Problem with 'readFile'

L. J. djsenda at gmail.com
Sat Aug 26 18:14:40 EDT 2006

 Hi, I use the operation 'readFile' for obtain information locates on
a file. When I try to write another information on the same file, I
obtain this error message: "openFile: permision denied". I found this:
"The readFile operation holds a semi-closed handle on the file until
the entire contents of the file have been consumed. It follows that an
attempt to write to a file (using writeFile, for example) that was
earlier opened by readFile will usually result in failure with
isAlreadyInUseError." in this web

 How can I break that semi-closed handle for to write in the
preaviously readed file? Thank you.

More information about the Haskell mailing list