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,a046ce7f5ee1fa51 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-12-02 06:57:54 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: mheaney@on2.com (Matthew Heaney) Newsgroups: comp.lang.ada Subject: Re: new_line in a put_line Date: 2 Dec 2002 06:57:54 -0800 Organization: http://groups.google.com/ Message-ID: <1ec946d1.0212020657.2bd8b5c@posting.google.com> References: NNTP-Posting-Host: 66.162.65.162 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1038841074 1839 127.0.0.1 (2 Dec 2002 14:57:54 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 2 Dec 2002 14:57:54 GMT Xref: archiver1.google.com comp.lang.ada:31343 Date: 2002-12-02T14:57:54+00:00 List-Id: "Vlad" wrote in message news:... > > Is there a way of prepending a new_line to a put_line. > The reason I need this is that I have multiple tasks outputing to a\ > single file. Some of them use Text_IO.Put rather then Text_IO.Put_Line. > And because of this, some of these outputs get written on the same line > as my outputs. If you have multiple tasks writing to the same file, then you're going to have to synchronize access to the file through some intermediary, as a task or protected object (the latter requires care). Therefore, there should already be a layer between Text_IO and the writing tasks, which means that you can insert whatever extra code (e.g. a call to New_Line) you deem necessary.