Chapter 12. Input and Output

Table of Contents
12.1. Referencing Files
12.2. Lisp and Gamma I/O mechanisms
12.3. Writing
12.4. Reading

12.1. Referencing Files

As in C, there are two ways to reference a file in Gamma, using a descriptor or a pointer.

In Gamma, a file pointer is an opaque structure (the internals are not visible to the programmer) that is effectively a buffered FILE*. (See the note in open.) It's abstracted a little further to also include strings as file pointers, when they are opened using open_string.

Some Gamma I/O functions work with file descriptors (generally those that start with fd_), others work with file pointers, and a few work with both.

Copyright 1995-2002 by Cogent Real-Time Systems, Inc.