Overview Module Function Class Tea 3.2.2 Reference Documentation
© 2007 PDM&FC

Module tea.io

File and I/O functions and classes.

When this module is loaded two global variables will be created: stdin and stdout. The stdin variable contains an instance of TInput associated with the process standard input. The stdout variable contains an instance of TOutput associated with the process standard output.

Function Summary
file-basename Retrieves the basename component of a path name.
file-copy Makes a copy of a file.
file-dirname Retrieves the directory part of a path name.
file-exists? Checks if a file exists.
file-extension Retrieves the extension of a file name.
file-is-dir? Checks if a path name refers to a directory.
file-is-regular? Checks if a path name refers to a regular file.
file-join Builds a path name by joining the name components.
file-make-path Creates a directory and every missing parent directory.
file-mkdir Creates a directory.
file-rename Changes the name of a file or directory.
file-size Fetches the size of a file in bytes.
file-split-path-list Creates a list of strings representing path names from a a string containing a sequence of path names separated by the plataform dependent path separator character.
file-unlink Deletes a file.
file-unlink-recursive Recursively removes all the contents of a directory.
glob Retrieves a list of files contained in a directory and whose names match a regular expression.

Class Summary
TFileInput File input stream.
TFileOutput File output stream.
TInput Input stream.
TOutput Output stream.
TUrlInput Input stream from a URL.

Overview Module Function Class Tea 3.2.2 Reference Documentation
© 2007 PDM&FC
Report a bug or request new features
© 2007