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=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Out_File , excess line Date: Wed, 27 Jan 2016 19:32:48 +0000 Organization: A noiseless patient Spider Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="d1f7d2633ee45ab9629ebafbf83c9647"; logging-data="15143"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX195hah3eGiJ+k/NhlnGWtj7sRq8ff9SQNI=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (darwin) Cancel-Lock: sha1:gj/kLffH+2ck4sdb/PtwVLZk/I0= sha1:boRk5D5l4BMdwgUh+PSBnpzdwDw= Xref: news.eternal-september.org comp.lang.ada:29260 Date: 2016-01-27T19:32:48+00:00 List-Id: Simon Wright writes: > So, if you Unbounded_String'Write "foo", you will get > - 4 bytes containing binary 1, the first index of the content > - 4 bytes containing binary 3, the last index of the content > - 3 bytes of content, 'f' 'o' 'o'. > > Which looks nothing like a text file. The tool of choice here (on Unix systems) is 'od'; 'od -c test' shows and interprets the file contents byte-by-byte.