<!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>&nbsp;</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>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>freopen&nbsp;&nbsp;:: !*File !Int -&gt; 
(!Bool,!*File)<BR>/*&nbsp;Re-opens an open file in a possibly different 
mode.<BR>&nbsp;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>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;fclose :: !*File !*f -&gt; 
(!Bool,!*f)<BR>&nbsp;&nbsp;&nbsp;/* 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&nbsp;<FONT face=Arial 
size=2>conditions under which&nbsp;closing a file fails?</FONT></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Regards Erik Zuurbier</DIV></FONT></BODY></HTML>