home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: LaTeX Document
(document/latex).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| LaTeX Document (document/latex)
| magic
| Supported |
1%
| dexvert
| Corel 10 Texture (image/corel10Texture)
| ext
| Unsupported |
1%
| dexvert
| Croteam texture file (image/croteamTextureFile)
| ext
| Unsupported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| LaTeX document text
| default
| |
99%
| file
| LaTeX document, ASCII text
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
| |
100%
| xdgMime
| text/x-matlab
| default (weak)
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 25 20 43 6f 70 79 72 69 | 67 68 74 20 28 63 29 20 |% Copyri|ght (c) |
|00000010| 31 39 39 36 20 62 79 20 | 4c 65 6c 65 20 47 61 69 |1996 by |Lele Gai|
|00000020| 66 61 78 2e 20 20 41 6c | 6c 20 52 69 67 68 74 73 |fax. Al|l Rights|
|00000030| 20 52 65 73 65 72 76 65 | 64 0a 25 0a 25 20 54 68 | Reserve|d.%.% Th|
|00000040| 69 73 20 66 69 6c 65 20 | 69 73 20 70 61 72 74 20 |is file |is part |
|00000050| 6f 66 20 74 68 65 20 50 | 79 4f 62 6a 43 20 70 61 |of the P|yObjC pa|
|00000060| 63 6b 61 67 65 2e 0a 25 | 0a 25 20 24 52 43 53 66 |ckage..%|.% $RCSf|
|00000070| 69 6c 65 3a 20 6c 69 62 | 4f 62 6a 43 53 74 72 65 |ile: lib|ObjCStre|
|00000080| 61 6d 73 2e 74 65 78 2c | 76 20 24 0a 25 20 24 52 |ams.tex,|v $.% $R|
|00000090| 65 76 69 73 69 6f 6e 3a | 20 31 2e 31 2e 31 2e 32 |evision:| 1.1.1.2|
|000000a0| 20 24 0a 25 20 24 44 61 | 74 65 3a 20 31 39 39 36 | $.% $Da|te: 1996|
|000000b0| 2f 31 30 2f 32 33 20 31 | 37 3a 32 30 3a 31 37 20 |/10/23 1|7:20:17 |
|000000c0| 24 0a 25 0a 25 20 43 72 | 65 61 74 65 64 20 4d 6f |$.%.% Cr|eated Mo|
|000000d0| 6e 20 4f 63 74 20 20 37 | 20 31 38 3a 30 33 3a 35 |n Oct 7| 18:03:5|
|000000e0| 33 20 31 39 39 36 2e 0a | 25 0a 0a 5c 73 65 63 74 |3 1996..|%..\sect|
|000000f0| 69 6f 6e 7b 42 75 69 6c | 74 2d 69 6e 20 4d 6f 64 |ion{Buil|t-in Mod|
|00000100| 75 6c 65 20 5c 73 65 63 | 74 63 6f 64 65 7b 4f 62 |ule \sec|tcode{Ob|
|00000110| 6a 43 53 74 72 65 61 6d | 73 7d 7d 0a 5c 62 69 6d |jCStream|s}}.\bim|
|00000120| 6f 64 69 6e 64 65 78 7b | 4f 62 6a 43 53 74 72 65 |odindex{|ObjCStre|
|00000130| 61 6d 73 7d 0a 5c 72 65 | 6e 65 77 63 6f 6d 6d 61 |ams}.\re|newcomma|
|00000140| 6e 64 7b 5c 69 6e 64 65 | 78 73 75 62 69 74 65 6d |nd{\inde|xsubitem|
|00000150| 7d 7b 28 69 6e 20 6d 6f | 64 75 6c 65 20 4f 62 6a |}{(in mo|dule Obj|
|00000160| 43 53 74 72 65 61 6d 73 | 29 7d 0a 0a 54 68 65 20 |CStreams|)}..The |
|00000170| 5c 63 6f 64 65 7b 4f 62 | 6a 43 53 74 72 65 61 6d |\code{Ob|jCStream|
|00000180| 73 7d 20 6d 6f 64 75 6c | 65 20 67 65 74 73 20 61 |s} modul|e gets a|
|00000190| 75 74 6f 6d 61 74 69 63 | 61 6c 6c 79 20 69 6d 70 |utomatic|ally imp|
|000001a0| 6f 72 74 65 64 20 77 68 | 65 6e 65 76 65 72 20 79 |orted wh|enever y|
|000001b0| 6f 75 0a 69 6d 70 6f 72 | 74 20 74 68 65 20 4f 62 |ou.impor|t the Ob|
|000001c0| 6a 43 20 6d 6f 64 75 6c | 65 2c 20 61 6e 64 20 69 |jC modul|e, and i|
|000001d0| 74 27 73 20 61 76 61 69 | 6c 61 62 6c 65 20 61 73 |t's avai|lable as|
|000001e0| 20 69 74 73 20 5c 76 61 | 72 7b 2e 73 74 72 65 61 | its \va|r{.strea|
|000001f0| 6d 73 7d 0a 6d 65 6d 62 | 65 72 2e 20 49 74 20 65 |ms}.memb|er. It e|
|00000200| 6e 63 61 70 73 75 6c 61 | 74 65 73 20 74 68 65 20 |ncapsula|tes the |
|00000210| 75 6e 64 65 72 6c 79 69 | 6e 67 20 4f 62 6a 65 63 |underlyi|ng Objec|
|00000220| 74 69 76 65 2d 43 20 73 | 74 72 65 61 6d 73 20 66 |tive-C s|treams f|
|00000230| 61 63 69 6c 69 74 79 0a | 69 6e 74 6f 20 61 20 50 |acility.|into a P|
|00000240| 79 74 68 6f 6e 20 63 6c | 61 73 73 2c 20 5c 63 6f |ython cl|ass, \co|
|00000250| 64 65 7b 4f 62 6a 43 53 | 74 72 65 61 6d 7d 3a 20 |de{ObjCS|tream}: |
|00000260| 75 6e 64 65 72 20 4e 65 | 58 54 53 54 45 50 20 69 |under Ne|XTSTEP i|
|00000270| 74 20 69 73 20 62 75 69 | 6c 74 0a 61 72 6f 75 6e |t is bui|lt.aroun|
|00000280| 64 20 74 68 65 20 6e 61 | 74 69 76 65 20 5c 63 6f |d the na|tive \co|
|00000290| 64 65 7b 4e 58 53 74 72 | 65 61 6d 7d 20 6c 69 62 |de{NXStr|eam} lib|
|000002a0| 72 61 72 79 2c 20 77 68 | 69 6c 65 20 75 6e 64 65 |rary, wh|ile unde|
|000002b0| 72 20 47 4e 55 53 74 65 | 70 20 61 6e 64 0a 4f 70 |r GNUSte|p and.Op|
|000002c0| 65 6e 53 74 65 70 20 69 | 74 20 61 63 74 75 61 6c |enStep i|t actual|
|000002d0| 6c 79 20 75 73 65 73 20 | 61 20 73 75 62 63 6c 61 |ly uses |a subcla|
|000002e0| 73 73 20 6f 66 20 5c 63 | 6f 64 65 7b 4e 53 44 61 |ss of \c|ode{NSDa|
|000002f0| 74 61 7d 2e 0a 0a 54 68 | 65 20 6d 6f 64 75 6c 65 |ta}...Th|e module|
|00000300| 20 70 72 6f 76 69 64 65 | 73 20 74 68 65 20 66 6f | provide|s the fo|
|00000310| 6c 6c 6f 77 69 6e 67 20 | 6d 65 74 68 6f 64 73 3a |llowing |methods:|
|00000320| 0a 0a 5c 62 65 67 69 6e | 7b 66 75 6e 63 64 65 73 |..\begin|{funcdes|
|00000330| 63 7d 7b 6f 70 65 6e 66 | 69 6c 65 7d 7b 66 69 6c |c}{openf|ile}{fil|
|00000340| 65 6e 61 6d 65 20 5c 6f | 70 74 69 6f 6e 61 6c 7b |ename \o|ptional{|
|00000350| 2c 20 6d 6f 64 65 7d 7d | 0a 4f 70 65 6e 73 20 74 |, mode}}|.Opens t|
|00000360| 68 65 20 67 69 76 65 6e | 20 5c 76 61 72 7b 66 69 |he given| \var{fi|
|00000370| 6c 65 6e 61 6d 65 7d 20 | 61 73 20 61 20 73 74 72 |lename} |as a str|
|00000380| 65 61 6d 2c 20 61 6e 64 | 20 72 65 74 75 72 6e 73 |eam, and| returns|
|00000390| 20 69 74 2e 20 5c 76 61 | 72 7b 6d 6f 64 65 7d 0a | it. \va|r{mode}.|
|000003a0| 6d 61 79 20 62 65 20 6f | 6e 65 20 6f 66 20 5c 63 |may be o|ne of \c|
|000003b0| 6f 64 65 7b 2e 52 45 41 | 44 4f 4e 4c 59 7d 2c 20 |ode{.REA|DONLY}, |
|000003c0| 5c 63 6f 64 65 7b 2e 57 | 52 49 54 45 4f 4e 4c 59 |\code{.W|RITEONLY|
|000003d0| 7d 2c 20 5c 63 6f 64 65 | 7b 2e 52 45 41 44 57 52 |}, \code|{.READWR|
|000003e0| 49 54 45 7d 0a 6f 72 20 | 5c 63 6f 64 65 7b 2e 41 |ITE}.or |\code{.A|
|000003f0| 50 50 45 4e 44 7d 2e 0a | 5c 65 6e 64 7b 66 75 6e |PPEND}..|\end{fun|
|00000400| 63 64 65 73 63 7d 0a 0a | 5c 62 65 67 69 6e 7b 66 |cdesc}..|\begin{f|
|00000410| 75 6e 63 64 65 73 63 7d | 7b 6f 70 65 6e 6d 65 6d |uncdesc}|{openmem|
|00000420| 6f 72 79 7d 7b 73 74 72 | 69 6e 67 20 5c 6f 70 74 |ory}{str|ing \opt|
|00000430| 69 6f 6e 61 6c 7b 2c 20 | 6d 6f 64 65 7d 7d 0a 4f |ional{, |mode}}.O|
|00000440| 70 65 6e 73 20 61 20 5c | 64 66 6e 7b 6d 65 6d 6f |pens a \|dfn{memo|
|00000450| 72 79 20 73 74 72 65 61 | 6d 7d 20 61 6e 64 20 72 |ry strea|m} and r|
|00000460| 65 74 75 72 6e 73 20 69 | 74 2e 20 49 66 20 5c 76 |eturns i|t. If \v|
|00000470| 61 72 7b 6d 6f 64 65 7d | 20 69 73 0a 5c 63 6f 64 |ar{mode}| is.\cod|
|00000480| 65 7b 2e 52 45 41 44 4f | 4e 4c 59 7d 2c 20 5c 76 |e{.READO|NLY}, \v|
|00000490| 61 72 7b 73 74 72 69 6e | 67 7d 20 6d 75 73 74 20 |ar{strin|g} must |
|000004a0| 62 65 20 61 20 73 74 72 | 69 6e 67 20 6f 62 6a 65 |be a str|ing obje|
|000004b0| 63 74 2c 20 77 68 69 63 | 68 20 77 69 6c 6c 20 62 |ct, whic|h will b|
|000004c0| 65 0a 75 73 65 64 20 61 | 73 20 74 68 65 20 64 61 |e.used a|s the da|
|000004d0| 74 61 20 73 6f 75 72 63 | 65 20 6f 66 20 74 68 65 |ta sourc|e of the|
|000004e0| 20 73 74 72 65 61 6d 2e | 20 49 66 20 5c 76 61 72 | stream.| If \var|
|000004f0| 7b 6d 6f 64 65 7d 20 69 | 73 0a 5c 63 6f 64 65 7b |{mode} i|s.\code{|
|00000500| 2e 57 52 49 54 45 4f 4e | 4c 59 7d 2c 20 74 68 65 |.WRITEON|LY}, the|
|00000510| 20 61 72 67 75 6d 65 6e | 74 20 5c 76 61 72 7b 73 | argumen|t \var{s|
|00000520| 74 72 69 6e 67 7d 20 6d | 75 73 74 20 62 65 20 5c |tring} m|ust be \|
|00000530| 63 6f 64 65 7b 4e 6f 6e | 65 7d 2e 0a 5c 65 6e 64 |code{Non|e}..\end|
|00000540| 7b 66 75 6e 63 64 65 73 | 63 7d 0a 0a 5c 62 65 67 |{funcdes|c}..\beg|
|00000550| 69 6e 7b 66 75 6e 63 64 | 65 73 63 7d 7b 6f 70 65 |in{funcd|esc}{ope|
|00000560| 6e 70 6f 72 74 7d 7b 6d | 61 63 68 70 6f 72 74 20 |nport}{m|achport |
|00000570| 5c 6f 70 74 69 6f 6e 61 | 6c 7b 2c 20 6d 6f 64 65 |\optiona|l{, mode|
|00000580| 7d 7d 0a 4f 70 65 6e 73 | 20 61 20 4d 41 43 48 20 |}}.Opens| a MACH |
|00000590| 70 6f 72 74 20 61 73 20 | 61 20 73 74 72 65 61 6d |port as |a stream|
|000005a0| 20 61 6e 64 20 72 65 74 | 75 72 6e 73 20 69 74 2e | and ret|urns it.|
|000005b0| 0a 5c 65 6e 64 7b 66 75 | 6e 63 64 65 73 63 7d 0a |.\end{fu|ncdesc}.|
|000005c0| 0a 54 68 65 20 6d 6f 64 | 75 6c 65 20 68 61 73 20 |.The mod|ule has |
|000005d0| 74 68 65 73 65 20 64 61 | 74 61 20 6d 65 6d 62 65 |these da|ta membe|
|000005e0| 72 73 3a 0a 0a 5c 62 65 | 67 69 6e 7b 64 61 74 61 |rs:..\be|gin{data|
|000005f0| 64 65 73 63 7d 7b 52 45 | 41 44 4f 4e 4c 59 7d 0a |desc}{RE|ADONLY}.|
|00000600| 54 68 69 73 20 63 6f 6e | 73 74 61 6e 74 20 69 73 |This con|stant is|
|00000610| 20 75 73 65 64 20 74 6f | 20 6f 70 65 6e 20 61 20 | used to| open a |
|00000620| 73 74 72 65 61 6d 20 69 | 6e 20 72 65 61 64 2d 6f |stream i|n read-o|
|00000630| 6e 6c 79 20 6d 6f 64 65 | 2e 0a 5c 65 6e 64 7b 64 |nly mode|..\end{d|
|00000640| 61 74 61 64 65 73 63 7d | 0a 0a 5c 62 65 67 69 6e |atadesc}|..\begin|
|00000650| 7b 64 61 74 61 64 65 73 | 63 7d 7b 57 52 49 54 45 |{datades|c}{WRITE|
|00000660| 4f 4e 4c 59 7d 0a 54 68 | 69 73 20 63 6f 6e 73 74 |ONLY}.Th|is const|
|00000670| 61 6e 74 20 69 73 20 75 | 73 65 64 20 74 6f 20 6f |ant is u|sed to o|
|00000680| 70 65 6e 20 61 20 73 74 | 72 65 61 6d 20 69 6e 20 |pen a st|ream in |
|00000690| 77 72 69 74 65 2d 6f 6e | 6c 79 20 6d 6f 64 65 2e |write-on|ly mode.|
|000006a0| 0a 5c 65 6e 64 7b 64 61 | 74 61 64 65 73 63 7d 0a |.\end{da|tadesc}.|
|000006b0| 0a 5c 62 65 67 69 6e 7b | 64 61 74 61 64 65 73 63 |.\begin{|datadesc|
|000006c0| 7d 7b 52 45 41 44 57 52 | 49 54 45 7d 0a 54 68 69 |}{READWR|ITE}.Thi|
|000006d0| 73 20 63 6f 6e 73 74 61 | 6e 74 20 69 73 20 75 73 |s consta|nt is us|
|000006e0| 65 64 20 74 6f 20 6f 70 | 65 6e 20 61 20 73 74 72 |ed to op|en a str|
|000006f0| 65 61 6d 20 69 6e 20 72 | 65 61 64 2d 77 72 69 74 |eam in r|ead-writ|
|00000700| 65 20 6d 6f 64 65 2e 0a | 5c 65 6e 64 7b 64 61 74 |e mode..|\end{dat|
|00000710| 61 64 65 73 63 7d 0a 0a | 5c 62 65 67 69 6e 7b 64 |adesc}..|\begin{d|
|00000720| 61 74 61 64 65 73 63 7d | 7b 41 50 50 45 4e 44 7d |atadesc}|{APPEND}|
|00000730| 0a 54 68 69 73 20 63 6f | 6e 73 74 61 6e 74 20 69 |.This co|nstant i|
|00000740| 73 20 75 73 65 64 20 74 | 6f 20 6f 70 65 6e 20 61 |s used t|o open a|
|00000750| 20 73 74 72 65 61 6d 20 | 69 6e 20 72 65 61 64 2d | stream |in read-|
|00000760| 77 72 69 74 65 20 6d 6f | 64 65 20 6d 6f 76 69 6e |write mo|de movin|
|00000770| 67 20 74 68 65 0a 73 74 | 72 65 61 6d 20 70 6f 73 |g the.st|ream pos|
|00000780| 69 74 69 6f 6e 20 61 74 | 20 74 68 65 20 65 6e 64 |ition at| the end|
|00000790| 2e 0a 5c 65 6e 64 7b 64 | 61 74 61 64 65 73 63 7d |..\end{d|atadesc}|
|000007a0| 0a 0a 5c 62 65 67 69 6e | 7b 64 61 74 61 64 65 73 |..\begin|{datades|
|000007b0| 63 7d 7b 46 52 4f 4d 53 | 54 41 52 54 7d 0a 54 68 |c}{FROMS|TART}.Th|
|000007c0| 69 73 20 63 6f 6e 73 74 | 61 6e 74 2c 20 75 73 65 |is const|ant, use|
|000007d0| 64 20 62 79 20 74 68 65 | 20 5c 63 6f 64 65 7b 73 |d by the| \code{s|
|000007e0| 65 65 6b 28 29 7d 20 6d | 65 74 68 6f 64 2c 20 73 |eek()} m|ethod, s|
|000007f0| 70 65 63 69 66 79 20 74 | 68 61 74 20 74 68 65 0a |pecify t|hat the.|
|00000800| 64 69 73 70 6c 61 63 65 | 6d 65 6e 74 20 69 73 20 |displace|ment is |
|00000810| 72 65 6c 61 74 69 76 65 | 20 74 6f 20 74 68 65 20 |relative| to the |
|00000820| 73 74 61 72 74 20 6f 66 | 20 74 68 65 20 73 74 72 |start of| the str|
|00000830| 65 61 6d 2e 0a 5c 65 6e | 64 7b 64 61 74 61 64 65 |eam..\en|d{datade|
|00000840| 73 63 7d 0a 0a 5c 62 65 | 67 69 6e 7b 64 61 74 61 |sc}..\be|gin{data|
|00000850| 64 65 73 63 7d 7b 46 52 | 4f 4d 45 4e 44 7d 0a 54 |desc}{FR|OMEND}.T|
|00000860| 68 69 73 20 63 6f 6e 73 | 74 61 6e 74 2c 20 75 73 |his cons|tant, us|
|00000870| 65 64 20 62 79 20 74 68 | 65 20 5c 63 6f 64 65 7b |ed by th|e \code{|
|00000880| 73 65 65 6b 28 29 7d 20 | 6d 65 74 68 6f 64 2c 20 |seek()} |method, |
|00000890| 73 70 65 63 69 66 79 20 | 74 68 61 74 20 74 68 65 |specify |that the|
|000008a0| 0a 64 69 73 70 6c 61 63 | 65 6d 65 6e 74 20 69 73 |.displac|ement is|
|000008b0| 20 72 65 6c 61 74 69 76 | 65 20 74 6f 20 74 68 65 | relativ|e to the|
|000008c0| 20 65 6e 64 20 6f 66 20 | 74 68 65 20 73 74 72 65 | end of |the stre|
|000008d0| 61 6d 2e 0a 5c 65 6e 64 | 7b 64 61 74 61 64 65 73 |am..\end|{datades|
|000008e0| 63 7d 0a 0a 5c 62 65 67 | 69 6e 7b 64 61 74 61 64 |c}..\beg|in{datad|
|000008f0| 65 73 63 7d 7b 46 52 4f | 4d 43 55 52 52 45 4e 54 |esc}{FRO|MCURRENT|
|00000900| 7d 0a 54 68 69 73 20 63 | 6f 6e 73 74 61 6e 74 2c |}.This c|onstant,|
|00000910| 20 75 73 65 64 20 62 79 | 20 74 68 65 20 5c 63 6f | used by| the \co|
|00000920| 64 65 7b 73 65 65 6b 28 | 29 7d 20 6d 65 74 68 6f |de{seek(|)} metho|
|00000930| 64 2c 20 73 70 65 63 69 | 66 79 20 74 68 61 74 20 |d, speci|fy that |
|00000940| 74 68 65 0a 64 69 73 70 | 6c 61 63 65 6d 65 6e 74 |the.disp|lacement|
|00000950| 20 69 73 20 72 65 6c 61 | 74 69 76 65 20 74 6f 20 | is rela|tive to |
|00000960| 74 68 65 20 63 75 72 72 | 65 6e 74 20 70 6f 73 69 |the curr|ent posi|
|00000970| 74 69 6f 6e 20 6f 66 20 | 74 68 65 20 73 74 72 65 |tion of |the stre|
|00000980| 61 6d 2e 0a 5c 65 6e 64 | 7b 64 61 74 61 64 65 73 |am..\end|{datades|
|00000990| 63 7d 0a 0a 0a 5c 73 75 | 62 73 65 63 74 69 6f 6e |c}...\su|bsection|
|000009a0| 7b 4f 62 6a 43 53 74 72 | 65 61 6d 73 20 6f 62 6a |{ObjCStr|eams obj|
|000009b0| 65 63 74 73 7d 0a 5c 72 | 65 6e 65 77 63 6f 6d 6d |ects}.\r|enewcomm|
|000009c0| 61 6e 64 7b 5c 69 6e 64 | 65 78 73 75 62 69 74 65 |and{\ind|exsubite|
|000009d0| 6d 7d 7b 28 4f 62 6a 43 | 53 74 72 65 61 6d 73 20 |m}{(ObjC|Streams |
|000009e0| 6d 65 74 68 6f 64 29 7d | 0a 0a 54 68 69 73 20 69 |method)}|..This i|
|000009f0| 73 20 61 20 66 69 6c 65 | 2d 6c 69 6b 65 20 6f 62 |s a file|-like ob|
|00000a00| 6a 65 63 74 2c 20 61 6e | 64 20 69 74 20 72 65 73 |ject, an|d it res|
|00000a10| 70 6f 6e 64 73 20 74 6f | 20 74 68 65 73 65 20 6d |ponds to| these m|
|00000a20| 65 74 68 6f 64 73 3a 0a | 0a 5c 62 65 67 69 6e 7b |ethods:.|.\begin{|
|00000a30| 66 75 6e 63 64 65 73 63 | 7d 7b 63 6c 6f 73 65 7d |funcdesc|}{close}|
|00000a40| 7b 7d 0a 43 6c 6f 73 65 | 73 20 74 68 65 20 61 73 |{}.Close|s the as|
|00000a50| 73 6f 63 69 61 74 65 64 | 20 73 74 72 65 61 6d 2e |sociated| stream.|
|00000a60| 20 41 20 63 6c 6f 73 65 | 64 20 73 74 72 65 61 6d | A close|d stream|
|00000a70| 20 63 61 6e 6e 6f 74 20 | 62 65 20 72 65 61 64 20 | cannot |be read |
|00000a80| 6f 72 0a 77 72 69 74 74 | 65 6e 20 61 6e 79 6d 6f |or.writt|en anymo|
|00000a90| 72 65 2e 0a 5c 65 6e 64 | 7b 66 75 6e 63 64 65 73 |re..\end|{funcdes|
|00000aa0| 63 7d 0a 0a 5c 62 65 67 | 69 6e 7b 66 75 6e 63 64 |c}..\beg|in{funcd|
|00000ab0| 65 73 63 7d 7b 66 6c 75 | 73 68 7d 7b 7d 0a 46 6c |esc}{flu|sh}{}.Fl|
|00000ac0| 75 73 68 65 73 20 74 68 | 65 20 61 73 73 6f 63 69 |ushes th|e associ|
|00000ad0| 61 74 65 64 20 73 74 72 | 65 61 6d 27 73 20 62 75 |ated str|eam's bu|
|00000ae0| 66 66 65 72 2e 0a 5c 65 | 6e 64 7b 66 75 6e 63 64 |ffer..\e|nd{funcd|
|00000af0| 65 73 63 7d 0a 0a 5c 62 | 65 67 69 6e 7b 66 75 6e |esc}..\b|egin{fun|
|00000b00| 63 64 65 73 63 7d 7b 72 | 65 61 64 7d 7b 5c 6f 70 |cdesc}{r|ead}{\op|
|00000b10| 74 69 6f 6e 61 6c 7b 73 | 69 7a 65 7d 7d 0a 52 65 |tional{s|ize}}.Re|
|00000b20| 61 64 20 61 74 20 6d 6f | 73 74 20 5c 76 61 72 7b |ad at mo|st \var{|
|00000b30| 73 69 7a 65 7d 20 62 79 | 74 65 73 20 66 72 6f 6d |size} by|tes from|
|00000b40| 20 74 68 65 20 73 74 72 | 65 61 6d 20 28 6c 65 73 | the str|eam (les|
|00000b50| 73 20 69 66 20 74 68 65 | 20 72 65 61 64 20 68 69 |s if the| read hi|
|00000b60| 74 73 0a 5c 45 4f 46 7b | 7d 20 6f 72 20 6e 6f 20 |ts.\EOF{|} or no |
|00000b70| 6d 6f 72 65 20 64 61 74 | 61 20 69 73 20 69 6d 6d |more dat|a is imm|
|00000b80| 65 64 69 61 74 65 6c 79 | 20 61 76 61 69 6c 61 62 |ediately| availab|
|00000b90| 6c 65 20 6f 6e 20 61 20 | 70 69 70 65 2c 20 74 74 |le on a |pipe, tt|
|00000ba0| 79 20 6f 72 0a 73 69 6d | 69 6c 61 72 20 64 65 76 |y or.sim|ilar dev|
|00000bb0| 69 63 65 29 2e 20 20 49 | 66 20 74 68 65 20 5c 76 |ice). I|f the \v|
|00000bc0| 61 72 7b 73 69 7a 65 7d | 20 61 72 67 75 6d 65 6e |ar{size}| argumen|
|00000bd0| 74 20 69 73 20 6e 65 67 | 61 74 69 76 65 20 6f 72 |t is neg|ative or|
|00000be0| 20 6f 6d 69 74 74 65 64 | 2c 0a 72 65 61 64 20 61 | omitted|,.read a|
|00000bf0| 6c 6c 20 64 61 74 61 20 | 75 6e 74 69 6c 20 5c 45 |ll data |until \E|
|00000c00| 4f 46 7b 7d 20 69 73 20 | 72 65 61 63 68 65 64 2e |OF{} is |reached.|
|00000c10| 20 20 54 68 65 20 62 79 | 74 65 73 20 61 72 65 20 | The by|tes are |
|00000c20| 72 65 74 75 72 6e 65 64 | 20 61 73 20 61 0a 73 74 |returned| as a.st|
|00000c30| 72 69 6e 67 20 6f 62 6a | 65 63 74 2e 20 20 41 6e |ring obj|ect. An|
|00000c40| 20 65 6d 70 74 79 20 73 | 74 72 69 6e 67 20 69 73 | empty s|tring is|
|00000c50| 20 72 65 74 75 72 6e 65 | 64 20 77 68 65 6e 20 5c | returne|d when \|
|00000c60| 45 4f 46 7b 7d 20 69 73 | 0a 65 6e 63 6f 75 6e 74 |EOF{} is|.encount|
|00000c70| 65 72 65 64 20 69 6d 6d | 65 64 69 61 74 65 6c 79 |ered imm|ediately|
|00000c80| 2e 0a 5c 65 6e 64 7b 66 | 75 6e 63 64 65 73 63 7d |..\end{f|uncdesc}|
|00000c90| 0a 0a 5c 62 65 67 69 6e | 7b 66 75 6e 63 64 65 73 |..\begin|{funcdes|
|00000ca0| 63 7d 7b 72 65 61 64 6c | 69 6e 65 7d 7b 5c 6f 70 |c}{readl|ine}{\op|
|00000cb0| 74 69 6f 6e 61 6c 7b 6e | 75 6d 7d 7d 0a 52 65 61 |tional{n|um}}.Rea|
|00000cc0| 64 20 6f 6e 65 20 65 6e | 74 69 72 65 20 6c 69 6e |d one en|tire lin|
|00000cd0| 65 20 66 72 6f 6d 20 74 | 68 65 20 73 74 72 65 61 |e from t|he strea|
|00000ce0| 6d 2e 20 20 41 20 74 72 | 61 69 6c 69 6e 67 20 6e |m. A tr|ailing n|
|00000cf0| 65 77 6c 69 6e 65 20 63 | 68 61 72 61 63 74 65 72 |ewline c|haracter|
|00000d00| 20 69 73 0a 6b 65 70 74 | 20 69 6e 20 74 68 65 20 | is.kept| in the |
|00000d10| 73 74 72 69 6e 67 20 28 | 62 75 74 20 6d 61 79 20 |string (|but may |
|00000d20| 62 65 20 61 62 73 65 6e | 74 20 77 68 65 6e 20 61 |be absen|t when a|
|00000d30| 20 66 69 6c 65 20 65 6e | 64 73 20 77 69 74 68 20 | file en|ds with |
|00000d40| 61 6e 0a 69 6e 63 6f 6d | 70 6c 65 74 65 20 6c 69 |an.incom|plete li|
|00000d50| 6e 65 29 2e 20 20 49 66 | 20 74 68 65 20 5c 76 61 |ne). If| the \va|
|00000d60| 72 7b 73 69 7a 65 7d 20 | 61 72 67 75 6d 65 6e 74 |r{size} |argument|
|00000d70| 20 69 73 20 70 72 65 73 | 65 6e 74 20 61 6e 64 0a | is pres|ent and.|
|00000d80| 6e 6f 6e 2d 6e 65 67 61 | 74 69 76 65 2c 20 69 74 |non-nega|tive, it|
|00000d90| 20 69 73 20 61 20 6d 61 | 78 69 6d 75 6d 20 62 79 | is a ma|ximum by|
|00000da0| 74 65 20 63 6f 75 6e 74 | 20 28 69 6e 63 6c 75 64 |te count| (includ|
|00000db0| 69 6e 67 20 74 68 65 20 | 74 72 61 69 6c 69 6e 67 |ing the |trailing|
|00000dc0| 0a 6e 65 77 6c 69 6e 65 | 29 20 61 6e 64 20 61 6e |.newline|) and an|
|00000dd0| 20 69 6e 63 6f 6d 70 6c | 65 74 65 20 6c 69 6e 65 | incompl|ete line|
|00000de0| 20 6d 61 79 20 62 65 20 | 72 65 74 75 72 6e 65 64 | may be |returned|
|00000df0| 2e 20 49 66 20 69 74 27 | 73 20 6e 65 67 61 74 69 |. If it'|s negati|
|00000e00| 76 65 2c 20 74 68 65 0a | 74 72 61 69 6c 69 6e 67 |ve, the.|trailing|
|00000e10| 20 6e 65 77 6c 69 6e 65 | 73 20 61 72 65 20 73 74 | newline|s are st|
|00000e20| 72 69 70 70 65 64 2e 20 | 41 6e 20 65 6d 70 74 79 |ripped. |An empty|
|00000e30| 20 73 74 72 69 6e 67 20 | 69 73 20 72 65 74 75 72 | string |is retur|
|00000e40| 6e 65 64 20 77 68 65 6e | 0a 5c 45 4f 46 7b 7d 20 |ned when|.\EOF{} |
|00000e50| 69 73 20 68 69 74 20 69 | 6d 6d 65 64 69 61 74 65 |is hit i|mmediate|
|00000e60| 6c 79 2e 0a 5c 65 6e 64 | 7b 66 75 6e 63 64 65 73 |ly..\end|{funcdes|
|00000e70| 63 7d 0a 0a 5c 62 65 67 | 69 6e 7b 66 75 6e 63 64 |c}..\beg|in{funcd|
|00000e80| 65 73 63 7d 7b 72 65 61 | 64 6c 69 6e 65 73 7d 7b |esc}{rea|dlines}{|
|00000e90| 7d 0a 52 65 61 64 20 75 | 6e 74 69 6c 20 5c 45 4f |}.Read u|ntil \EO|
|00000ea0| 46 7b 7d 20 75 73 69 6e | 67 20 5c 63 6f 64 65 7b |F{} usin|g \code{|
|00000eb0| 72 65 61 64 6c 69 6e 65 | 28 29 7d 20 61 6e 64 20 |readline|()} and |
|00000ec0| 72 65 74 75 72 6e 20 61 | 20 6c 69 73 74 20 63 6f |return a| list co|
|00000ed0| 6e 74 61 69 6e 69 6e 67 | 0a 74 68 65 20 6c 69 6e |ntaining|.the lin|
|00000ee0| 65 73 20 74 68 75 73 20 | 72 65 61 64 2e 20 0a 5c |es thus |read. .\|
|00000ef0| 65 6e 64 7b 66 75 6e 63 | 64 65 73 63 7d 0a 0a 5c |end{func|desc}..\|
|00000f00| 62 65 67 69 6e 7b 66 75 | 6e 63 64 65 73 63 7d 7b |begin{fu|ncdesc}{|
|00000f10| 73 65 65 6b 7d 7b 6f 66 | 66 73 65 74 20 5c 6f 70 |seek}{of|fset \op|
|00000f20| 74 69 6f 6e 61 6c 7b 2c | 20 66 72 6f 6d 7d 7d 0a |tional{,| from}}.|
|00000f30| 53 65 74 20 74 68 65 20 | 73 74 72 65 61 6d 27 73 |Set the |stream's|
|00000f40| 20 63 75 72 72 65 6e 74 | 20 70 6f 73 69 74 69 6f | current| positio|
|00000f50| 6e 2e 20 54 68 65 20 5c | 76 61 72 7b 66 72 6f 6d |n. The \|var{from|
|00000f60| 7d 20 61 72 67 75 6d 65 | 6e 74 20 69 73 20 6f 70 |} argume|nt is op|
|00000f70| 74 69 6f 6e 61 6c 0a 61 | 6e 64 20 64 65 66 61 75 |tional.a|nd defau|
|00000f80| 6c 74 73 20 74 6f 20 5c | 63 6f 64 65 7b 46 52 4f |lts to \|code{FRO|
|00000f90| 4d 53 54 41 52 54 7d 20 | 28 61 62 73 6f 6c 75 74 |MSTART} |(absolut|
|00000fa0| 65 20 66 69 6c 65 20 70 | 6f 73 69 74 69 6f 6e 69 |e file p|ositioni|
|00000fb0| 6e 67 29 3b 20 6f 74 68 | 65 72 0a 76 61 6c 75 65 |ng); oth|er.value|
|00000fc0| 73 20 61 72 65 20 5c 63 | 6f 64 65 7b 46 52 4f 4d |s are \c|ode{FROM|
|00000fd0| 43 55 52 52 45 4e 54 7d | 20 28 73 65 65 6b 20 72 |CURRENT}| (seek r|
|00000fe0| 65 6c 61 74 69 76 65 20 | 74 6f 20 74 68 65 20 63 |elative |to the c|
|00000ff0| 75 72 72 65 6e 74 20 70 | 6f 73 69 74 69 6f 6e 29 |urrent p|osition)|
|00001000| 20 61 6e 64 0a 5c 63 6f | 64 65 7b 46 52 4f 4d 45 | and.\co|de{FROME|
|00001010| 4e 44 7d 20 28 73 65 65 | 6b 20 72 65 6c 61 74 69 |ND} (see|k relati|
|00001020| 76 65 20 74 6f 20 74 68 | 65 20 66 69 6c 65 27 73 |ve to th|e file's|
|00001030| 20 65 6e 64 29 2e 20 54 | 68 65 72 65 20 69 73 20 | end). T|here is |
|00001040| 6e 6f 20 72 65 74 75 72 | 6e 20 76 61 6c 75 65 2e |no retur|n value.|
|00001050| 0a 5c 65 6e 64 7b 66 75 | 6e 63 64 65 73 63 7d 0a |.\end{fu|ncdesc}.|
|00001060| 0a 5c 62 65 67 69 6e 7b | 66 75 6e 63 64 65 73 63 |.\begin{|funcdesc|
|00001070| 7d 7b 74 65 6c 6c 7d 7b | 7d 0a 52 65 74 75 72 6e |}{tell}{|}.Return|
|00001080| 73 20 74 68 65 20 63 75 | 72 72 65 6e 74 20 70 6f |s the cu|rrent po|
|00001090| 73 69 74 69 6f 6e 20 69 | 6e 20 73 74 72 65 61 6d |sition i|n stream|
|000010a0| 2e 0a 5c 65 6e 64 7b 66 | 75 6e 63 64 65 73 63 7d |..\end{f|uncdesc}|
|000010b0| 0a 0a 5c 62 65 67 69 6e | 7b 66 75 6e 63 64 65 73 |..\begin|{funcdes|
|000010c0| 63 7d 7b 77 72 69 74 65 | 7d 7b 74 65 78 74 7d 0a |c}{write|}{text}.|
|000010d0| 57 72 69 74 65 73 20 5c | 76 61 72 7b 74 65 78 74 |Writes \|var{text|
|000010e0| 7d 2c 20 61 20 73 74 72 | 69 6e 67 20 6f 62 6a 65 |}, a str|ing obje|
|000010f0| 63 74 2c 20 6f 6e 20 74 | 68 65 20 73 74 72 65 61 |ct, on t|he strea|
|00001100| 6d 2e 20 54 68 65 72 65 | 20 69 73 20 6e 6f 20 72 |m. There| is no r|
|00001110| 65 74 75 72 6e 0a 76 61 | 6c 75 65 2e 20 20 4e 6f |eturn.va|lue. No|
|00001120| 74 65 3a 20 64 75 65 20 | 74 6f 20 62 75 66 66 65 |te: due |to buffe|
|00001130| 72 69 6e 67 2c 20 74 68 | 65 20 73 74 72 69 6e 67 |ring, th|e string|
|00001140| 20 6d 61 79 20 6e 6f 74 | 20 61 63 74 75 61 6c 6c | may not| actuall|
|00001150| 79 20 73 68 6f 77 20 75 | 70 20 69 6e 0a 74 68 65 |y show u|p in.the|
|00001160| 20 66 69 6c 65 20 75 6e | 74 69 6c 20 74 68 65 20 | file un|til the |
|00001170| 5c 63 6f 64 65 7b 66 6c | 75 73 68 28 29 7d 20 6f |\code{fl|ush()} o|
|00001180| 72 20 5c 63 6f 64 65 7b | 63 6c 6f 73 65 28 29 7d |r \code{|close()}|
|00001190| 20 6d 65 74 68 6f 64 20 | 69 73 20 63 61 6c 6c 65 | method |is calle|
|000011a0| 64 2e 0a 5c 65 6e 64 7b | 66 75 6e 63 64 65 73 63 |d..\end{|funcdesc|
|000011b0| 7d 0a 0a 5c 62 65 67 69 | 6e 7b 66 75 6e 63 64 65 |}..\begi|n{funcde|
|000011c0| 73 63 7d 7b 77 72 69 74 | 65 6c 69 6e 65 73 7d 7b |sc}{writ|elines}{|
|000011d0| 6c 69 73 74 2d 6f 66 2d | 73 74 72 69 6e 67 73 7d |list-of-|strings}|
|000011e0| 0a 57 72 69 74 65 73 20 | 5c 76 61 72 7b 6c 69 73 |.Writes |\var{lis|
|000011f0| 74 2d 6f 66 2d 73 74 72 | 69 6e 67 73 7d 20 6f 6e |t-of-str|ings} on|
|00001200| 20 74 68 65 20 73 74 72 | 65 61 6d 2e 20 54 68 65 | the str|eam. The|
|00001210| 72 65 20 69 73 20 6e 6f | 20 72 65 74 75 72 6e 20 |re is no| return |
|00001220| 76 61 6c 75 65 2e 0a 28 | 54 68 65 20 6e 61 6d 65 |value..(|The name|
|00001230| 20 69 73 20 69 6e 74 65 | 6e 64 65 64 20 74 6f 20 | is inte|nded to |
|00001240| 6d 61 74 63 68 20 5c 63 | 6f 64 65 7b 72 65 61 64 |match \c|ode{read|
|00001250| 6c 69 6e 65 73 7d 3b 20 | 5c 63 6f 64 65 7b 77 72 |lines}; |\code{wr|
|00001260| 69 74 65 6c 69 6e 65 73 | 7d 0a 64 6f 65 73 20 6e |itelines|}.does n|
|00001270| 6f 74 20 61 64 64 20 6c | 69 6e 65 20 73 65 70 61 |ot add l|ine sepa|
|00001280| 72 61 74 6f 72 73 2e 29 | 0a 5c 65 6e 64 7b 66 75 |rators.)|.\end{fu|
|00001290| 6e 63 64 65 73 63 7d 0a | 0a 5c 62 65 67 69 6e 7b |ncdesc}.|.\begin{|
|000012a0| 66 75 6e 63 64 65 73 63 | 7d 7b 73 61 76 65 74 6f |funcdesc|}{saveto|
|000012b0| 66 69 6c 65 7d 7b 66 69 | 6c 65 6e 61 6d 65 7d 0a |file}{fi|lename}.|
|000012c0| 57 72 69 74 65 73 20 74 | 68 65 20 63 6f 6e 74 65 |Writes t|he conte|
|000012d0| 6e 74 20 6f 66 20 74 68 | 65 20 73 74 72 65 61 6d |nt of th|e stream|
|000012e0| 20 69 6e 20 61 20 66 69 | 6c 65 20 6e 61 6d 65 64 | in a fi|le named|
|000012f0| 20 5c 76 61 72 7b 66 69 | 6c 65 6e 61 6d 65 7d 2e | \var{fi|lename}.|
|00001300| 0a 5c 65 6e 64 7b 66 75 | 6e 63 64 65 73 63 7d 0a |.\end{fu|ncdesc}.|
|00001310| 0a 25 0a 25 20 4c 6f 63 | 61 6c 20 56 61 72 69 61 |.%.% Loc|al Varia|
|00001320| 62 6c 65 73 3a 0a 25 20 | 63 68 61 6e 67 65 2d 6c |bles:.% |change-l|
|00001330| 6f 67 2d 64 65 66 61 75 | 6c 74 2d 6e 61 6d 65 3a |og-defau|lt-name:|
|00001340| 22 2e 2e 2f 43 68 61 6e | 67 65 4c 6f 67 2e 50 79 |"../Chan|geLog.Py|
|00001350| 4f 62 6a 43 22 0a 25 20 | 45 6e 64 3a 0a 25 0a |ObjC".% |End:.%. |
+--------+-------------------------+-------------------------+--------+--------+