<html>
<head>
<title>firstworks   Programming with Rudiments using the standard I/O classes</title>
<link href="../css/styles.css" rel="stylesheet">
</head>
<body>

<span class="heading">Using the standard I/O classes</span><br><br>

<p>The filedescriptor class provides methods for generic input and output to file descriptors.  Rudiments pre-defines three instances: stdinput, stdoutput and stderror, which provide access to standard input, standard output and standard error.</p>

<p>As these classes are ultimately instances of the filedescriptor class, many I/O methods are available, but the most commonly used are read(), write() and printf().  The printf() method features all of the formatting capabilities of the standard C printf() function.</p>

<blockquote class="code">
@stdio.cpp.html@
</blockquote>

</body>
</html>
