From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,1ece2318f24b35a7 X-Google-Attributes: gid103376,public From: "Marin D. Condic" Subject: Re: UNIX Compressed Files From A PC Date: 2000/08/14 Message-ID: <3997FF32.D2B43133@acm.org>#1/1 X-Deja-AN: 658133019 Content-Transfer-Encoding: 7bit References: <3995C90A.E72C055F@acm.org> <3996B1FC.A5892C21@acm.org> <3996A9CD.A9EF115@netwood.net> <3996BB8D.1CD77C10@acm.org> <3996C305.338F5769@netwood.net> <3996DCFB.22A75F67@acm.org> <3996D2DE.5E9BB6FE@netwood.net> Organization: Quadrus Corporation X-Sender: "Marin D. Condic" (Unverified) X-Server-Date: 14 Aug 2000 14:17:00 GMT Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 Newsgroups: comp.lang.ada Date: 2000-08-14T14:17:00+00:00 List-Id: E. Robert Tisdale wrote: > I don't think you can do this > because, well, compressed files are compressed. > Generally, you can't simply modify the compressed file. > You must uncompress it, make the modification, then recompress it. > You can get an entirely different bit pattern in your compressed file > even if you are making very small changes. Apparently everyone is reading my requirement to be able to read and write compressed files to mean that I want Read/Write access to a compressed file. I don't. I want to be able to open a sequential, compressed file for read access and read the bytes getting them decompressed from the read routine. I want to open a sequential, compressed file for write access and write bytes to it, getting them compressed by the write routine. I also want to be able to seek to a specific byte position within a read-access file. (Yes, I know that doing a seek backwards will be painfully slow, but I mostly need to seek forward.) That's it. No more. This will be good enough. Thank you. And that's all I need - and this paddle game! :-) (Look at Win32.LZExpand if you want to see exactly what I need.) I do not want read/write access to a sequential file. Most programming languages and operating systems that I know of don't generally allow this because it would be painful to do in a general way. I clearly understand that attempting read/write access to a *compressed* sequential file would be even worse. I hope this clarifies. MDC -- ====================================================================== Marin David Condic - Quadrus Corporation - http://www.quadruscorp.com/ Send Replies To: m c o n d i c @ q u a d r u s c o r p . c o m Visit my web site at: http://www.mcondic.com/ "Take away the punchbowl just when the party gets going" -- William McChesney Martin, Former Fed chairman, explaining what a sound central bank must always do. ======================================================================