Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > 3e60ff9d4d6f58c8fbd17208f14089fa > files > 76

octave-doc-3.2.3-3mdv2010.0.i586.rpm

<html lang="en">
<head>
<title>C-Style I/O Functions - Untitled</title>
<meta http-equiv="Content-Type" content="text/html">
<meta name="description" content="Untitled">
<meta name="generator" content="makeinfo 4.13">
<link title="Top" rel="start" href="index.html#Top">
<link rel="up" href="Input-and-Output.html#Input-and-Output" title="Input and Output">
<link rel="prev" href="Basic-Input-and-Output.html#Basic-Input-and-Output" title="Basic Input and Output">
<link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage">
<meta http-equiv="Content-Style-Type" content="text/css">
<style type="text/css"><!--
  pre.display { font-family:inherit }
  pre.format  { font-family:inherit }
  pre.smalldisplay { font-family:inherit; font-size:smaller }
  pre.smallformat  { font-family:inherit; font-size:smaller }
  pre.smallexample { font-size:smaller }
  pre.smalllisp    { font-size:smaller }
  span.sc    { font-variant:small-caps }
  span.roman { font-family:serif; font-weight:normal; } 
  span.sansserif { font-family:sans-serif; font-weight:normal; } 
--></style>
</head>
<body>
<div class="node">
<a name="C-Style-I%2fO-Functions"></a>
<a name="C_002dStyle-I_002fO-Functions"></a>
<p>
Previous:&nbsp;<a rel="previous" accesskey="p" href="Basic-Input-and-Output.html#Basic-Input-and-Output">Basic Input and Output</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="Input-and-Output.html#Input-and-Output">Input and Output</a>
<hr>
</div>

<h3 class="section">14.2 C-Style I/O Functions</h3>

<p>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.

   <p>In the following, <var>file</var> refers to a file name and <code>fid</code> refers
to an integer file number, as returned by <code>fopen</code>.

   <p>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.

<!-- file-io.cc -->
   <p><a name="doc_002dstdin"></a>

<div class="defun">
&mdash; Built-in Function:  <b>stdin</b> ()<var><a name="index-stdin-770"></a></var><br>
<blockquote><p>Return the numeric value corresponding to the standard input stream. 
When Octave is used interactively, this is filtered through the command
line editing functions. 
<!-- Texinfo @sp should work but in practice produces ugly results for HTML. -->
<!-- A simple blank line produces the correct behavior. -->
<!-- @sp 1 -->

     <p class="noindent"><strong>See also:</strong> <a href="doc_002dstdout.html#doc_002dstdout">stdout</a>, <a href="doc_002dstderr.html#doc_002dstderr">stderr</a>. 
</p></blockquote></div>

<!-- file-io.cc -->
   <p><a name="doc_002dstdout"></a>

<div class="defun">
&mdash; Built-in Function:  <b>stdout</b> ()<var><a name="index-stdout-771"></a></var><br>
<blockquote><p>Return the numeric value corresponding to the standard output stream. 
Data written to the standard output is normally filtered through the pager. 
<!-- Texinfo @sp should work but in practice produces ugly results for HTML. -->
<!-- A simple blank line produces the correct behavior. -->
<!-- @sp 1 -->

     <p class="noindent"><strong>See also:</strong> <a href="doc_002dstdin.html#doc_002dstdin">stdin</a>, <a href="doc_002dstderr.html#doc_002dstderr">stderr</a>. 
</p></blockquote></div>

<!-- file-io.cc -->
   <p><a name="doc_002dstderr"></a>

<div class="defun">
&mdash; Built-in Function:  <b>stderr</b> ()<var><a name="index-stderr-772"></a></var><br>
<blockquote><p>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. 
<!-- Texinfo @sp should work but in practice produces ugly results for HTML. -->
<!-- A simple blank line produces the correct behavior. -->
<!-- @sp 1 -->

     <p class="noindent"><strong>See also:</strong> <a href="doc_002dstdin.html#doc_002dstdin">stdin</a>, <a href="doc_002dstdout.html#doc_002dstdout">stdout</a>. 
</p></blockquote></div>

<ul class="menu">
<li><a accesskey="1" href="Opening-and-Closing-Files.html#Opening-and-Closing-Files">Opening and Closing Files</a>
<li><a accesskey="2" href="Simple-Output.html#Simple-Output">Simple Output</a>
<li><a accesskey="3" href="Line_002dOriented-Input.html#Line_002dOriented-Input">Line-Oriented Input</a>
<li><a accesskey="4" href="Formatted-Output.html#Formatted-Output">Formatted Output</a>
<li><a accesskey="5" href="Output-Conversion-for-Matrices.html#Output-Conversion-for-Matrices">Output Conversion for Matrices</a>
<li><a accesskey="6" href="Output-Conversion-Syntax.html#Output-Conversion-Syntax">Output Conversion Syntax</a>
<li><a accesskey="7" href="Table-of-Output-Conversions.html#Table-of-Output-Conversions">Table of Output Conversions</a>
<li><a accesskey="8" href="Integer-Conversions.html#Integer-Conversions">Integer Conversions</a>
<li><a accesskey="9" href="Floating_002dPoint-Conversions.html#Floating_002dPoint-Conversions">Floating-Point Conversions</a>
<li><a href="Other-Output-Conversions.html#Other-Output-Conversions">Other Output Conversions</a>
<li><a href="Formatted-Input.html#Formatted-Input">Formatted Input</a>
<li><a href="Input-Conversion-Syntax.html#Input-Conversion-Syntax">Input Conversion Syntax</a>
<li><a href="Table-of-Input-Conversions.html#Table-of-Input-Conversions">Table of Input Conversions</a>
<li><a href="Numeric-Input-Conversions.html#Numeric-Input-Conversions">Numeric Input Conversions</a>
<li><a href="String-Input-Conversions.html#String-Input-Conversions">String Input Conversions</a>
<li><a href="Binary-I_002fO.html#Binary-I_002fO">Binary I/O</a>
<li><a href="Temporary-Files.html#Temporary-Files">Temporary Files</a>
<li><a href="EOF-and-Errors.html#EOF-and-Errors">EOF and Errors</a>
<li><a href="File-Positioning.html#File-Positioning">File Positioning</a>
</ul>

   </body></html>