Difference between pages "Tanh" and "Open"
From Mesham
(Difference between pages)
Jump to navigationJump to searchm |
|||
Line 1: | Line 1: | ||
== Overview == | == Overview == | ||
− | + | This open(n,a) function will open the file of name ''n'' with mode of ''a''. | |
− | * '''Pass:''' | + | * '''Pass:''' The name of the file to open of type [[String]] and mode of type [[String]] |
− | + | * '''Returns:''' A file handle of type [[File]] | |
− | * '''Returns:''' A [[ | ||
== Example == | == Example == | ||
− | #include < | + | #include <io> |
− | var | + | |
− | + | function void main() { | |
+ | var f:=open("myfile.txt","r"); | ||
+ | close(f); | ||
+ | }; | ||
''Since: Version 1.0'' | ''Since: Version 1.0'' | ||
[[Category:Function Library]] | [[Category:Function Library]] | ||
− | [[Category: | + | [[Category:IO Functions]] |