|
|
DataMuseum.dkPresents historical artifacts from the history of: Rational R1000/400 Tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about Rational R1000/400 Tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: B T
Length: 1483 (0x5cb)
Types: TextFile
Names: »B«
└─⟦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⟧
package body File is
Current_Char : Character;
Look_A_Head : Boolean;
procedure Open (A_File : Text_Io.File_Type) is
begin
Look_A_Head := False;
end Open;
function At_End (A_File : Text_Io.File_Type) return Boolean is
begin
if Look_A_Head then
if Current_Char = Ascii.Eot then
return True;
else
return False;
end if;
else
return False;
end if;
end At_End;
procedure Next (A_File : Text_Io.File_Type) is
begin
if not Look_A_Head then
if Text_Io.End_Of_File (File => A_File) then
Current_Char := Ascii.Eot;
else
if Text_Io.End_Of_Line (File => A_File) then
Current_Char := Ascii.Cr;
Text_Io.Skip_Line (File => A_File);
else
Text_Io.Get (File => A_File, Item => Current_Char);
end if;
end if;
else
Look_A_Head := False;
end if;
end Next;
function Value (A_File : Text_Io.File_Type) return Character is
begin
return Current_Char;
end Value;
function Get (A_File : Text_Io.File_Type) return Character is
begin
Next (A_File);
return Value (A_File);
end Get;
procedure Unget (A_File : Text_Io.File_Type) is
begin
Look_A_Head := True;
end Unget;
end File;