Difference between revisions of "Open"

From Mesham
Jump to navigationJump to search
(Created page with '== Overview == This open(n,a) function will open the file of name ''n'' with mode of ''a''. * '''Pass:''' The name of the file to open of type String and mode of type [[Str…')
 
m
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:36, 13 January 2013

Overview

This open(n,a) function will open the file of name n with mode of a.

  • Pass: The name of the file to open of type String and mode of type String
  • Returns: A file handle of type File

Example

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

Since: Version 1.0