fclose
| fclose | 
  Purpose
 
  
  Synopsis
 
 int fclose(XPRMcontext ctx, int flag);
 
  Arguments
 
 | 
     ctx 
     | 
     Mosel's execution context
     | ||||||
| 
     flag 
     | 
 | 
  Return value
 
 
 0 if successful.
 
  Further information
 
 
 This function closes the file associated to the current input, output or error stream. Output streams are automatically flushed before being closed. After the stream has been released, the stream that was active before is selected. Closing the default input, output or error stream (
 i.e. the streams available at start up) has no effect.
 
 
  Related topics
 
  
