|GNU Octave Manual Version 3|
by John W. Eaton, David Bateman, Søren Hauberg
Paperback (6"x9"), 568 pages
RRP £24.95 ($39.95)
14.2 C-Style I/O Functions
Octave's C-style input and output functions provide most of the functionality of the C programming language's standard I/O library. The argument lists for some of the input functions are slightly different, however, because Octave has no way of passing arguments by reference.
In the following, file refers to a file name and
to an integer file number, as returned by
There are three files that are always available. Although these files can be accessed using their corresponding numeric file ids, you should always use the symbolic names given in the table below, since it will make your programs easier to understand.
- Built-in Function: stdin ()
- Return the numeric value corresponding to the standard input stream.
When Octave is used interactively, this is filtered through the command
line editing functions.
See also stdout, stderr
- Built-in Function: stdout ()
- Return the numeric value corresponding to the standard output stream.
Data written to the standard output is normally filtered through the pager.
See also stdin, stderr
- Built-in Function: stderr ()
- Return the numeric value corresponding to the standard error stream.
Even if paging is turned on, the standard error is not sent to the
pager. It is useful for error messages and prompts.
See also stdin, stdout
|ISBN 095461206X||GNU Octave Manual Version 3||See the print edition|