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

⟦29ce501f8⟧ TextFile

    Length: 938 (0x3aa)
    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 Text_Io;
package body Command_Line_Handler is

    Command_Line_File_Name : constant String := "COMMAND_LINE.TXT";
    Command_File : Text_Io.File_Type;


    procedure Reset is
    begin
        if Text_Io.Is_Open (Command_File) then
            Text_Io.Close (Command_File);
        end if;
    end Reset;

    procedure Next_Word (Word : out String; Length : out Natural) is
    begin
        if not Text_Io.Is_Open (Command_File) then
            begin
                Text_Io.Open (Command_File, Text_Io.In_File,
                              Command_Line_File_Name);
            exception
                when others =>
                    raise No_Command_Line_File;
            end;
        end if;
        Text_Io.Get_Line (Command_File, Word, Length);
    exception
        when No_Command_Line_File =>
            raise;
        when others =>
            raise No_More_Words;
    end Next_Word;

end Command_Line_Handler;