<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2802" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Dear Cleaners,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I have a case where freopen fails. </FONT><FONT
face=Arial size=2>The comments in the StdFile library say:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>freopen :: !*File !Int ->
(!Bool,!*File)<BR>/* Re-opens an open file in a possibly different
mode.<BR> The boolean indicates whether the file was successfully closed
before reopening. */<BR></FONT></DIV>
<DIV><FONT face=Arial size=2>So I look at fclose:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> fclose :: !*File !*f ->
(!Bool,!*f)<BR> /* Closes a file */<BR></FONT></DIV>
<DIV><FONT face=Arial size=2>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.</FONT></DIV>
<DIV><FONT face=Arial size=2>What could be the other <FONT face=Arial
size=2>conditions under which closing a file fails?</FONT></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Regards Erik Zuurbier</DIV></FONT></BODY></HTML>