Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!umn-d-ub!cs.umn.edu!cybrspc!roy From: cybrspc!roy@cs.umn.edu (Roy M. Silvernail) Newsgroups: comp.sources.d Subject: Re: uuencode & xxencode Message-ID: Date: 7 Jul 90 08:21:37 GMT References: <203@shiloh.UUCP> Organization: Villa CyberSpace, Minneapolis, MN Lines: 20 lamont@shiloh.UUCP (Lamont granquist) writes: > Has anyone out there ever considered patching uuencode & xxencode so that > before the BEGIN line it sticks a line containing info like file size, etc? Doesn't seem too efficient to me. {uu|xx}encode makes one pass on the file, encoding as it reads, and writing to an output file (often stdout). Such a modification would require either 2 passes on the file, creation of a tempfile (thus writing 2 files, and deleting one of them), or a monster buffer in memory. Now, a _trailing_ summary line could be easily added, and could be read with 'tail file.uue'. Less convenient for perusing ??encoded news articles, to be sure, but also less resource-intensive. Even DOS machines have 'tail' available. -- Roy M. Silvernail | 'I don't see why you people | Opinions found now available at: | seem to think this is magic... | herein are mine, cybrspc!roy@cs.umn.edu | Its just this little chromium | but you can rent (cyberspace... be here!)| switch here...[click]' | them.