Debian Codegraph @

info/gcl/File-Streams.html

raw
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2 <html>
3 <!-- Created by GNU Texinfo 6.7, http://www.gnu.org/software/texinfo/ -->
4 <head>
5 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
6 <title>File Streams (ANSI and GNU Common Lisp Document)</title>
7
8 <meta name="description" content="File Streams (ANSI and GNU Common Lisp Document)">
9 <meta name="keywords" content="File Streams (ANSI and GNU Common Lisp Document)">
10 <meta name="resource-type" content="document">
11 <meta name="distribution" content="global">
12 <meta name="Generator" content="makeinfo">
13 <link href="index.html" rel="start" title="Top">
14 <link href="Introduction-to-Streams.html" rel="up" title="Introduction to Streams">
15 <link href="Other-Subclasses-of-Stream.html" rel="next" title="Other Subclasses of Stream">
16 <link href="Abstract-Classifications-of-Streams.html" rel="prev" title="Abstract Classifications of Streams">
17 <style type="text/css">
18 <!--
19 a.summary-letter {text-decoration: none}
20 blockquote.indentedblock {margin-right: 0em}
21 div.display {margin-left: 3.2em}
22 div.example {margin-left: 3.2em}
23 div.lisp {margin-left: 3.2em}
24 kbd {font-style: oblique}
25 pre.display {font-family: inherit}
26 pre.format {font-family: inherit}
27 pre.menu-comment {font-family: serif}
28 pre.menu-preformatted {font-family: serif}
29 span.nolinebreak {white-space: nowrap}
30 span.roman {font-family: initial; font-weight: normal}
31 span.sansserif {font-family: sans-serif; font-weight: normal}
32 ul.no-bullet {list-style: none}
33 -->
34 </style>
35
36
37 </head>
38
39 <body lang="en">
40 <span id="File-Streams"></span><div class="header">
41 <p>
42 Next: <a href="Other-Subclasses-of-Stream.html" accesskey="n" rel="next">Other Subclasses of Stream</a>, Previous: <a href="Abstract-Classifications-of-Streams.html" accesskey="p" rel="prev">Abstract Classifications of Streams</a>, Up: <a href="Introduction-to-Streams.html" accesskey="u" rel="up">Introduction to Streams</a> &nbsp; </p>
43 </div>
44 <hr>
45 <span id="File-Streams-1"></span><h4 class="subsubsection">21.1.1.6 File Streams</h4>
46
47 <p>Some <i>streams</i>, called <i>file streams</i>
48 <span id="index-file-stream"></span>
49 , provide access to <i>files</i>.
50 An <i>object</i> of <i>class</i> <b>file-stream</b> is used to represent a <i>file stream</i>.
51 </p>
52 <p>The basic operation for opening a <i>file</i> is <b>open</b>,
53 which typically returns a <i>file stream</i>
54 (see its dictionary entry for details).
55 The basic operation for closing a <i>stream</i> is <b>close</b>.
56 The macro <b>with-open-file</b> is useful
57 to express the common idiom of opening a <i>file</i>
58 for the duration of a given body of <i>code</i>,
59 and assuring that the resulting <i>stream</i> is closed upon exit from that body.
60 </p>
61
62
63
64 </body>
65 </html>