comp.lang.ada
 help / color / mirror / Atom feed
From: tolkamp <f.tolkamp@chello.nl>
Subject: Re: How to put Floats in an Output File?
Date: Sat, 10 Jan 2009 03:15:22 -0800 (PST)
Date: 2009-01-10T03:15:22-08:00	[thread overview]
Message-ID: <a0cc78fc-e5d2-47c1-bb16-6d8944d3f7d9@s9g2000prg.googlegroups.com> (raw)
In-Reply-To: twS9l.272904$Mh5.162463@bgtnsc04-news.ops.worldnet.att.net

On 10 jan, 02:06, a...@anon.org (anon) wrote:
> with Ada.Float_Text_IO ;
>
> Ada.Float_Text_IO.Put ( File => Outp_File, Item => Value ) ;
>
> -- or to user the standard output
>
> Ada.Float_Text_IO.Put ( Value ) ;
>
> -- Of course you can add a few options to more control the format
> -- of the output. Options: Fore, Aft, Exp
>
> In <e4441a73-0a37-49e5-b54b-b6d43dad4...@a29g2000pra.googlegroups.com>, tolkamp <f.tolk...@chello.nl> writes:
>
>
>
> >I try to put float values into a file using the following code:
>
> >package Float_Io is new Text_Io.Float_Io (Float);
>
> >Outp_File  : File_Type;
> >Value : Float;
> >Create (Outp_File, Out_File, Outp_Filename);
> >Put (Outp_File, Float_Io.Put (Value));
>
> >Compilation results in the following error message:
>
> >no candidate interpretations match the actuals:
> >missing argument for parameter "Item" in call to Put
> >context requires function call, found procedure name- Tekst uit oorspronkelijk bericht niet weergeven -
>
> - Tekst uit oorspronkelijk bericht weergeven -

Thank you for the solutions, these work perfect.



      reply	other threads:[~2009-01-10 11:15 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-09 21:14 How to put Floats in an Output File? tolkamp
2009-01-09 21:28 ` Adam Beneschan
2009-01-09 21:47 ` Robert A Duff
2009-01-10  1:06 ` anon
2009-01-10 11:15   ` tolkamp [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox