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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,624c77c4e3ffaa2 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!postnews.google.com!b2g2000prf.googlegroups.com!not-for-mail From: deadlyhead Newsgroups: comp.lang.ada Subject: Re: Defaulting to Standard_Output Date: Thu, 23 Oct 2008 19:57:37 -0700 (PDT) Organization: http://groups.google.com Message-ID: <57dcc958-4b4c-4282-82b3-5c348895c6ad@b2g2000prf.googlegroups.com> References: <3a558b10-da3e-4dfa-93e1-573170dfa565@x1g2000prh.googlegroups.com> <7decfc0d-26ef-4539-8d2e-7e0bce88cfbd@r37g2000prr.googlegroups.com> NNTP-Posting-Host: 216.57.220.9 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1224817057 21081 127.0.0.1 (24 Oct 2008 02:57:37 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 24 Oct 2008 02:57:37 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: b2g2000prf.googlegroups.com; posting-host=216.57.220.9; posting-account=snJuNwoAAABnc8T9lYkBlDQrDdSjOjG2 User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648),gzip(gfe),gzip(gfe) Xref: g2news1.google.com comp.lang.ada:2481 Date: 2008-10-23T19:57:37-07:00 List-Id: On Oct 23, 6:49=A0pm, Adam Beneschan wrote: > > Well, yes. =A0If you want to create a file, you need to call Create. > There isn't anything in the Ada libraries that I know of that will > create a file without you telling it to. =A0But why would that be a > problem? =A0If Name /=3D "", call Create, then call Set_Output. > > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 -- Adam Maybe I'm missing something here. If I use Set_Output (Outfile), all calls to Put or Put_Line without a File parameter go to Outfile, correct? They do not got to the Terminal/Standard_Output, right? This is not what I want. I want all output of the program to go to Standard_Output if no name is given for Outfile. It's like if `cat` had an option '-o' that designated an output file. `cat something.txt -o outfile.txt` =3D `cat something.txt > outfile.txt`, but `cat something.txt` outputs to the terminal. That's the type of functionality that I want. Maybe it's just a pain to do, which is why no other programs are set up like this. -- deadlyhead