Difference between revisions of "Close"
From Mesham
Jump to navigationJump to searchm |
|||
Line 9: | Line 9: | ||
#include <io> | #include <io> | ||
− | var f:=open("myfile.txt","r"); | + | function void main() { |
− | + | var f:=open("myfile.txt","r"); | |
+ | close(f); | ||
+ | }; | ||
''Since: Version 1.0'' | ''Since: Version 1.0'' |
Revision as of 14:30, 15 April 2013
Overview
The close(f) function will close the file represented by handle f
- Pass: A File handle
- Returns: Nothing
Example
#include <io> function void main() { var f:=open("myfile.txt","r"); close(f); };
Since: Version 1.0