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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,305f22b27bd2e6cb X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-11-03 14:34:43 PST Message-ID: <3FA6D7FC.8E62A4A8@fakeaddress.nil> Date: Mon, 03 Nov 2003 23:34:37 +0100 From: Gautier Write-only X-Mailer: Mozilla 4.8 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Read Binary File References: <6449213e.0311030756.64346802@posting.google.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 80.218.90.97 X-Trace: news.swissonline.ch 1067898882 80.218.90.97 (3 Nov 2003 23:34:42 +0200) X-Complaints-To: abuse@swissonline.ch Path: archiver1.google.com!news2.google.com!fu-berlin.de!solnet.ch!solnet.ch!news.imp.ch!news.imp.ch!130.59.1.10.MISMATCH!news-zh.switch.ch!switch.ch!news.swissonline.ch!not-for-mail Xref: archiver1.google.com comp.lang.ada:2016 Date: 2003-11-03T23:34:37+01:00 List-Id: Frank Mattison: # Does anyone have a suggestion for reading this binary file? # # Situation: OpenVMS, Alpha, Ada '83. Binary file created by C++ program. # Use_Error raised on first byte. We regularly read Ada-generated # binary files, but the C++ source in new. If I remember well my painful experiences with the tandem {DEC Ada & Sequential_IO}, there is one carriage return expected after each element (in your case, each byte!). Try to write some date with your Byte_IO and see the result in a binary editor... I suspect Larry's reply is the good way (hum, but specific to DEC Ada...) ________________________________________________________ Gautier -- http://www.mysunrise.ch/users/gdm/gsoft.htm NB: For a direct answer, e-mail address on the Web site!