ada

package Ada.Text_IO

Introduction#

Package Ada.Text_IO is used for putting text or getting text from files or console.

Put_Line

Prints out string with a newline.

with Ada.Text_IO;

procedure Put_Text is
    use Ada.Text_IO;
    S : String := "Hello";
begin
    Put_Line ("Hello");
    Put_Line (Standard_Output, "Hello");
    Put_Line (Standard_Error, "Hello error");
    Put_Line (S & " World");
end;

Result

Hello
Hello
Hello error
Hello World

This modified text is an extract of the original Stack Overflow Documentation created by the contributors and released under CC BY-SA 3.0 This website is not affiliated with Stack Overflow