package Ada.Text_IO

Other topics

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

Contributors

Topic Id: 8839

Example Ids: 27532

This site is not affiliated with any of the contributors.