DataMuseum.dk

Presents historical artifacts from the history of:

Rational R1000/400

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

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - download

⟦8fe138f1d⟧ Ada Source

    Length: 3072 (0xc00)
    Types: Ada Source
    Notes: 03_class, FILE, R1k_Segment, e3_tag, procedure Catenate_Files, seg_00c0ec

Derivation

└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000
    └─ ⟦cfc2e13cd⟧ »Space Info Vol 2« 
        └─⟦this⟧ 

E3 Source Code



with Directory_Tools;
with Text_Io;  
procedure Catenate_Files (Source    : String;
                          Target    : String;
                          Separator : String := String'(1 .. 1 => Ascii.Ff)) is
    package Dtn renames Directory_Tools.Naming;
    package Dto renames Directory_Tools.Object;  
    Iter                      : Dto.Iterator;
    The_In_File, The_Out_File : Text_Io.File_Type;
    The_Char                  : Character;
begin
    Text_Io.Create (The_Out_File, Text_Io.Out_File, Target);
    Iter := Dtn.Resolution (Name         => Source,
                            Context      => Dtn.Default_Context,
                            Objects_Only => True);
    while not Dto.Done (Iter) loop
        Text_Io.Open (The_In_File, Text_Io.In_File,
                      Name => Dtn.Unique_Full_Name (Dto.Value (Iter)));
        while not Text_Io.End_Of_File (The_In_File) loop
            while not Text_Io.End_Of_Line (The_In_File) loop
                Text_Io.Get (The_In_File, The_Char);
                Text_Io.Put (The_Out_File, The_Char);
            end loop;  
            Text_Io.Skip_Line (The_In_File);
            Text_Io.New_Line (The_Out_File);
        end loop;  
        Text_Io.Put_Line (The_Out_File, Separator);
        Text_Io.Close (The_In_File);
        Dto.Next (Iter);
    end loop;
    Text_Io.Close (The_Out_File);
end Catenate_Files;



E3 Meta Data

    nblk1=2
    nid=0
    hdr6=4
        [0x00] rec0=16 rec1=00 rec2=01 rec3=01c
        [0x01] rec0=0e rec1=00 rec2=02 rec3=000
    tail 0x217091fc482025327ab5f 0x42a00088462063c03