reCT

The only ByteSpace Project big enough to have its
own Website

IO Package

Include this Package with


package io;

[i] This package includes ReCTs IO / Filesystem functions.


FileExists(path -> string)

Will check if the given file exists and returns the result as a Bool.


ReadFile(path -> string)

Will read the whole given file and return it as a String.


WriteFile(path -> string, text -> string)

Will write the given Text to a File. If the file doesn't exis,t it will be created.


DeleteFile(path -> string)

Will delete the given File.


GetFilesInDirectory(path -> string)

Will fetch all File paths in the given Directory and return them as a String Array/


DirectoryExists(path -> string)

Will check if the given Folder exists and return the result as a Bool.


CreateDirectory(path -> string)

Will create the given path's Directory.


DeleteDirectory(path -> string)

Will delete the given Directory.


GetDirsInDirectory(path -> string)

Will fetch all Folder paths in the given Directory and returns them as a String Array.


GetCurrentDirectory()

Will return the current working directory as a String.


ChangeDirectory(path -> string)

Will change the current working directory to the given path.