DataMuseum.dk

Presents historical artifacts from the history of:

Rational R1000/400 Tapes

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about Rational R1000/400 Tapes

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - metrics - download
Index: B T

⟦6cee41caa⟧ TextFile

    Length: 802 (0x322)
    Types: TextFile
    Names: »B«

Derivation

└─⟦180fe333a⟧ Bits:30000405 8mm tape, Rational 1000, SW CATALOG, 10_20_0
└─⟦180fe333a⟧ Bits:30000537 8mm tape, Rational 1000, SW Catalog 10_20_0
    └─⟦5cb1d1d7f⟧ »DATA« 
        └─⟦3b1ee7bd8⟧ 
            └─⟦this⟧ 

TextFile

with Io;
with File_Location;
with Time_Utilities;
procedure Get_Login_Message is
    --
    The_File : Io.File_Type;
    Total_Messages : Natural;
    --
    function Random_Number return Natural is
        The_Time : Time_Utilities.Time := Time_Utilities.Get_Time;
    begin
        return Natural (The_Time.Second);
    end Random_Number;
    --
begin
    Io.Open (The_File, Io.In_File, File_Location);
    Io.Get (The_File, Total_Messages);
    Io.Skip_Line
       (The_File,
        Spacing => Io.Positive_Count (Random_Number mod Total_Messages + 1));
    Io.Put_Line (Io.Standard_Error, Io.Get_Line (The_File));
    Io.Close (The_File);
exception
    when others =>
        Io.Put_Line (Io.Standard_Error,
                     "Get_Login_Message is not working today...");
end Get_Login_Message;