Skip to content

Commit a86adc0

Browse files
Updated main to include files
1 parent 95a9660 commit a86adc0

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

Main/Main.ezcode

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -351,6 +351,17 @@ class expressions {
351351
}
352352
}
353353
}
354+
class file {
355+
method read : @str:path => @str {
356+
return runexec io-package.dll.io_package.IO.FileRead ~> {path}
357+
}
358+
method write : @str:path, @str:text => @str {
359+
return runexec io-package.dll.io_package.IO.FileWrite ~> {path}, {text}
360+
}
361+
method create : @str:path => @str {
362+
return runexec io-package.dll.io_package.IO.FileCreate ~> {path}
363+
}
364+
}
354365
global nocol method print : ! @str:__text {
355366
runexec EZCodeLanguage.EZHelp.Print ~> {__text}
356367
}

0 commit comments

Comments
 (0)