[clean-list] freopen fails
Erik Zuurbier
erik.zuurbier at tiscali.nl
Sun Jan 28 23:16:06 MET 2007
Dear Cleaners,
I have a case where freopen fails. The comments in the StdFile library say:
freopen :: !*File !Int -> (!Bool,!*File)
/* Re-opens an open file in a possibly different mode.
The boolean indicates whether the file was successfully closed before reopening. */
So I look at fclose:
fclose :: !*File !*f -> (!Bool,!*f)
/* Closes a file */
I can imagine that closing fails if I remove a file by hand in the mean time, but that is not the case in my program.
What could be the other conditions under which closing a file fails?
Regards Erik Zuurbier
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.science.ru.nl/pipermail/clean-list/attachments/20070128/c64ee92d/attachment.html
More information about the clean-list
mailing list