| 1 |
<html><head> |
| 2 |
|
| 3 |
<title>Binary File I/O</title> |
| 4 |
|
| 5 |
<style type="text/css"> |
| 6 |
.example { |
| 7 |
color: #000000; |
| 8 |
background-color: #F5F5F5; |
| 9 |
padding: 8px; |
| 10 |
border: #808080; |
| 11 |
border-style: solid; |
| 12 |
border-width: 1px; |
| 13 |
width:auto; |
| 14 |
} |
| 15 |
.button { |
| 16 |
color: #000000; |
| 17 |
background-color: #F5F5F5; |
| 18 |
padding-top: 1px; |
| 19 |
padding-bottom: 1px; |
| 20 |
padding-left: 4px; |
| 21 |
padding-right: 8px; |
| 22 |
border: #808080; |
| 23 |
border-style: solid; |
| 24 |
border-width: 1px; |
| 25 |
white-space: pre; |
| 26 |
} |
| 27 |
.box { |
| 28 |
color: #000000; |
| 29 |
padding-top: 4px; |
| 30 |
padding-bottom: 4px; |
| 31 |
padding-left: 16px; |
| 32 |
padding-right: 16px; |
| 33 |
border: #808080; |
| 34 |
border-style: solid; |
| 35 |
border-width: 1px; |
| 36 |
} |
| 37 |
</style> |
| 38 |
|
| 39 |
</head> |
| 40 |
|
| 41 |
<body> |
| 42 |
|
| 43 |
<a href="../start.htm">Nyquist / XLISP 2.0</a> - |
| 44 |
<a href="../manual/contents.htm">Contents</a> | |
| 45 |
<a href="tutorials/tutorials.htm">Tutorials</a> | |
| 46 |
<a href="../examples.htm">Examples</a> | |
| 47 |
<a href="../reference/reference-index.htm">Reference</a> |
| 48 |
|
| 49 |
<hr> |
| 50 |
|
| 51 |
<h1>Binary File I/O</h1> |
| 52 |
|
| 53 |
<hr> |
| 54 |
|
| 55 |
|
| 56 |
|
| 57 |
<pre class="example"> |
| 58 |
(defun hexdump (filename &key (start 0) end) |
| 59 |
(if (and (integerp start) (not (minusp start))) |
| 60 |
(error "not a non-negative integer" start)) |
| 61 |
(or (null end) |
| 62 |
(and (integerp end) (not (minusp end))) |
| 63 |
(error "not a non-negative integer" end)) |
| 64 |
(let ((file (open-binary filename))) |
| 65 |
</pre> |
| 66 |
|
| 67 |
|
| 68 |
|
| 69 |
<p><nobr> <a href="#top">Back to top</a></nobr></p> |
| 70 |
|
| 71 |
<hr> |
| 72 |
|
| 73 |
<a href="../start.htm">Nyquist / XLISP 2.0</a> - |
| 74 |
<a href="../manual/contents.htm">Contents</a> | |
| 75 |
<a href="tutorials/tutorials.htm">Tutorials</a> | |
| 76 |
<a href="../examples.htm">Examples</a> | |
| 77 |
<a href="../reference/reference-index.htm">Reference</a> |
| 78 |
|
| 79 |
</body></html> |