466
|
1 <refentry id="read">
|
|
2 <refnamediv>
|
468
|
3 <refname>Read</refname>
|
|
4 <refpurpose>read from a file</refpurpose>
|
466
|
5 </refnamediv>
|
|
6
|
|
7 <refsynopsisdiv>
|
|
8 <funcsynopsis>
|
|
9 <funcprototype>
|
|
10 <funcdef><function>read</function></funcdef>
|
|
11 <paramdef>type <parameter>arg1</parameter></paramdef>
|
|
12 </funcprototype>
|
|
13 </funcsynopsis>
|
|
14
|
|
15 </refsynopsisdiv>
|
|
16
|
542
|
17 <refsect1><title>Assembler Equivalent</title>
|
|
18 <para>
|
|
19 os9 I$READ
|
|
20 </para>
|
|
21 <para>
|
|
22 os9 I$READLN
|
|
23 </para>
|
|
24 </refsect1>
|
|
25
|
466
|
26 <refsect1><title>Description</title>
|
|
27 <para>
|
|
28 Placeholder
|
|
29 </para>
|
|
30 </refsect1>
|
542
|
31
|
552
|
32 <refsect1><title>Diagnostics</title>
|
|
33 <para>
|
|
34 Read and readln return the number of bytes actually read (0 at
|
|
35 end-of-file) or -1 for physical i/o errors, a bad path number,
|
|
36 or a ridicolous "count".
|
|
37 </para>
|
|
38 <para>
|
|
39 NOTE that end-of-file is not considered an error, and no error
|
|
40 indication is returned. Zero is returned on EOF.
|
|
41 </para>
|
|
42 </refsect1>
|
|
43
|
542
|
44 <refsect1><title>See Also</title>
|
|
45 <para>
|
|
46 <link linkend="open">open()</link>,
|
|
47 <link linkend="creat">creat()</link>,
|
|
48 <link linkend="dup">dup()</link>
|
|
49 </para>
|
|
50 </refsect1>
|
|
51
|
466
|
52 </refentry>
|