Difference between revisions of "Open"

From Mesham
Jump to navigationJump to search
m (3 revisions imported)
 
(No difference)

Latest revision as of 15:44, 15 April 2019

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>

function void main() {
   var f:=open("myfile.txt","r");
   close(f);
};

Since: Version 1.0