A language built for fun
This project is maintained by cometlang
inherits Object
READ_ONLY
READ_WRITE
APPEND
BINARY
close()
closes the filewrite(value)
writes the value to the fileread()
reads the entire content of the file into a String and return itsync()
calls the system call fsync
to synchronize the filesystem into which the file is writtenflush()
calls the system call fflush
to ensure the file buffers are written to the physical mediaopen(path, flags)
opens a file with an FOPEN flag optionally bitwise-or’d with FOPEN.BINARY
(binary is not implemented correctly and will still attempt to return a string)exists?(path)
returns a Boolean value if the current process can see the existence of the path, per the rules of the OS/filesystemfile?(path)
returns a Boolean if the given path is a regular fileread_all_lines(path)
opens the path for reading as text, returning a List of the individual lines, closing the file when finisheddelete(path)
deletes the file at the pathjoin_path(path, [components]*)
joins the path and the following path components with the OS-dependent path separator and returns a string representation of it