comp.lang.ada
 help / color / mirror / Atom feed
From: Ledru#m#_Pascal@MSMAIL3.HAC.COM
Subject: Re: Beginner Need help !
Date: 1996/04/23
Date: 1996-04-23T00:00:00+00:00	[thread overview]
Message-ID: <317D5368.6B57@MSMAIL3.HAC.COM> (raw)
In-Reply-To: 4lir0f$dhq@gde.GDEsystems.COM

Just use the mode Append_File (which does not exist in Ada83 by the 
way!)

with Text_IO;
procedure TestFile2 is
  package IO_Int is new Text_IO.Integer_IO( Num => Integer);
  use IO_Int;
  File_A : Text_IO.FILE_TYPE;
begin
  -- we assume the file always exists here!
  Text_IO.Open
    ( File => File_A,
      Mode => Text_IO.Append_File,
      Name => "File_A" );

  for I in 1 .. 10 loop
    Text_IO.Put(File_A, "Line : ");
    IO_Int.Put( File_A, i, 4);
    Text_IO.New_Line(File_A);
  end loop;

  Text_IO.Close( File_A );
end;




      reply	other threads:[~1996-04-23  0:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-04-22  0:00 Beginner Need help ! Andr�
1996-04-23  0:00 ` Joerg Rodemann
1996-04-23  0:00 ` Michael Levasseur
1996-04-23  0:00   ` Ledru#m#_Pascal [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