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!news.eternal-september.org!.POSTED!not-for-mail From: "J-P. Rosen" Newsgroups: comp.lang.ada Subject: Re: How to write "Hello" to a text file without a line terminator Date: Fri, 12 Aug 2016 09:41:09 +0200 Organization: A noiseless patient Spider Message-ID: References: <2cc97e17-313e-44b8-b335-8d5e815e925a@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Date: Fri, 12 Aug 2016 07:41:14 -0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="798b7d8df948c500cd1922e876c851d1"; logging-data="29022"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18m4FhncEmcfvgBjAOcoiXI" User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 In-Reply-To: Cancel-Lock: sha1:Qdhj5++e6ZeN1iBCwT2FrFLAYcg= Xref: news.eternal-september.org comp.lang.ada:31412 Date: 2016-08-12T09:41:09+02:00 List-Id: Le 12/08/2016 à 09:23, Dmitry A. Kazakov a écrit : > On 12/08/2016 06:05, Jerry wrote: >> How does one write "Hello" to a text file without a line terminator? >> >> Put("Hello"); >> >> adds a line terminator after "Hello". > > No, it does not, if you are talking about the standard library Put. > > It is Put_Line that does. > More precisely, Put does not output a line terminator, but when your program terminates either Text_IO itself or the OS may output a line terminator "just in case". -- J-P. Rosen Adalog 2 rue du Docteur Lombard, 92441 Issy-les-Moulineaux CEDEX Tel: +33 1 45 29 21 52, Fax: +33 1 45 29 25 00 http://www.adalog.fr