Tyl Programming Language
▶ IO MODULE REFERENCE
io.append path content → content
path - The file path.
content - The content to append.
io.delete path → success
path - The file or directory path.
success - If deleted, returns TRUE. If the path is of a directory, all directory tree will be deleted!
io.directories path directoriesdirectories
path - The parent directory path.
directories - Gets list of all directories in path.
io.exists path → success
path - The file path.
success - If exists, returns TRUE.
io.files path filesfiles
path - The parent directory path.
files - Gets list of all files in path.
io.read path contentcontent
path - The file path.
content - If the file exists, content will get the content of the file.
io.write path content → content
path - The file path. If the file does not exist, it will be created.
content - The content to write. If ommited, no content will be written.