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 - download
Index: ┃ B T

⟦c055a9820⟧ TextFile

    Length: 1769 (0x6e9)
    Types: TextFile
    Names: »B«

Derivation

└─⟦a7d1ea751⟧ Bits:30000550 8mm tape, Rational 1000, !users!projects 94_04_11
    └─ ⟦129cab021⟧ »DATA« 
        └─⟦this⟧ 
└─⟦2f6cfab89⟧ Bits:30000547 8mm tape, Rational 1000, !projects 94-01-04
    └─ ⟦d65440be7⟧ »DATA« 
        └─⟦this⟧ 

TextFile

with Text_Io;

package body Fichier_Io is


    function At_End (Fichier_Source : in Text_Io.File_Type) return Boolean is
    begin
        if Look_Ahead then
            return False;
        else
            return Text_Io.End_Of_File (Fichier_Source);
        end if;

    end At_End;


    function Get (Fichier_Source : in Text_Io.File_Type) return Character is
    begin  
        if Look_Ahead then
            Look_Ahead := False;

        else
            if At_End (Fichier_Source) then
                Current_Char := Ascii.Eot;
            else
                if Text_Io.End_Of_Line (Fichier_Source) then
                    Text_Io.Skip_Line (Fichier_Source);
                    Current_Char := Ascii.Cr;


                else
                    Text_Io.Get (Fichier_Source, Current_Char);

                end if;
            end if;
        end if;
        return Current_Char;
    end Get;

    function Value (Fichier_Source : in Text_Io.File_Type) return Character is
    begin
        return Current_Char;
    end Value;


    procedure Close (Fichier_Source : in out Text_Io.File_Type) is
    begin
        Text_Io.Close (Fichier_Source);
    end Close;

    procedure Next (Fichier_Source : in Text_Io.File_Type) is
    begin
        if (Look_Ahead) then
            Look_Ahead := False;
        else
            Text_Io.Get (Fichier_Source, Current_Char);
        end if;
    end Next;

    procedure Open (Fichier_Source : in out Text_Io.File_Type;
                    Name : in String) is
    begin
        Text_Io.Open (Fichier_Source, Text_Io.In_File, Name);
        Look_Ahead := False;
    end Open;


    procedure Unget (Fichier_Source : in Text_Io.File_Type) is
    begin
        Look_Ahead := True;
    end Unget;



end Fichier_Io;