Difference between revisions of "Close"

From Mesham
Jump to navigationJump to search
(Created page with '== Overview == The close(f) function will close the file represented by handle ''f'' * '''Pass:''' A file handle of type File * '''Returns:''' Nothing == Example == #inc…')
 
m
Line 3: Line 3:
 
The close(f) function will close the file represented by handle ''f''
 
The close(f) function will close the file represented by handle ''f''
  
* '''Pass:''' A file handle of type [[File]]
+
* '''Pass:''' A [[File]] handle
 
* '''Returns:''' Nothing
 
* '''Returns:''' Nothing
  
Line 11: Line 11:
 
  var f:=open("myfile.txt","r");
 
  var f:=open("myfile.txt","r");
 
  close(f);
 
  close(f);
 +
 +
''Since: Version 1.0''
  
 
[[Category:Function Library]]
 
[[Category:Function Library]]
 
[[Category:IO Functions]]
 
[[Category:IO Functions]]

Revision as of 18:30, 13 January 2013

Overview

The close(f) function will close the file represented by handle f

  • Pass: A File handle
  • Returns: Nothing

Example

#include <io>
var f:=open("myfile.txt","r");
close(f);

Since: Version 1.0