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-Thread: 103376,e3ba37c5a979fdcb X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!news3.google.com!news.glorb.com!npeer.de.kpn-eurorings.net!news.uni-stuttgart.de!carbon.eu.sun.com!btnet-feed5!btnet!news.btopenworld.com!not-for-mail From: Martin Dowie Newsgroups: comp.lang.ada Subject: Re: invalid parameter list Date: Sat, 18 Feb 2006 23:34:49 +0000 (UTC) Organization: BT Openworld Message-ID: References: <1140218028.145204.141420@z14g2000cwz.googlegroups.com> <1140249851.389233.273980@g47g2000cwa.googlegroups.com> <1140297548.116832.212770@g43g2000cwa.googlegroups.com> <57OJf.45346$d5.201767@newsb.telia.net> NNTP-Posting-Host: host86-131-209-91.range86-131.btcentralplus.com Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: nwrdmz01.dmz.ncs.ea.ibs-infra.bt.com 1140305689 3275 86.131.209.91 (18 Feb 2006 23:34:49 GMT) X-Complaints-To: news-complaints@lists.btinternet.com NNTP-Posting-Date: Sat, 18 Feb 2006 23:34:49 +0000 (UTC) In-Reply-To: <57OJf.45346$d5.201767@newsb.telia.net> User-Agent: Thunderbird 1.5 (Windows/20051201) Xref: g2news1.google.com comp.lang.ada:2969 Date: 2006-02-18T23:34:49+00:00 List-Id: >> also how do i write the a chain to a txt file? > > Declare a variable of the type Ada.Text_IO.File_Type, open the file with > Ada.Text_IO.Create and write each number with Ada.Integer_Text_IO.Put. Beware that if the file already exists Ada.Text_IO.Create will raise an exception, so you have to use a "begin ... exception ... end;" block. I always think a "Overwrite_Existing_File : Boolean := False" parameter on this function would be handy... Cheers -- Martin