I/O
- Syntax and behavior are similar to the C I/O library
- UNIX-like commands: cd, pwd
- File handling: open, close
- I/O : gets, puts
- Information and misc: eof, file, glob
- Pre-defined standard files: stdin, stdout, stderr
- cd [dirName]
- Usual UNIX syntax
- pwd
- Usual UNIX syntax
- open fileName [accessType]
- Opens the file named fileName
- close fileId
- Close the file given by fileId and returns an empty string.
- gets fileId [varName]
- Reads the next line from the file
- puts [-nonewline] [fileId] string
- Writes string into
fileId
- eof fileId
- Returns 1 if an end-of-file condition has occurred on fileId. 0 otherwise.
- file { exists|rootname|dirname|tail|extension ...} args ...
- A family of commands to get information about files and directories.
- glob [-nocomplain] [--] pattern [pattern ...]
- Return a list of files that match any of the patterns