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

⟦6e667a42a⟧ TextFile

    Length: 794 (0x31a)
    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 Polymorphic_Sequential_Io;
with Checkbook;
package body Storage is

    package Pio renames Polymorphic_Sequential_Io;

    package Ops is new Pio.Operations (Checkbook.Database);

    procedure Read (Db : in out Checkbook.Database; Filename : String) is
        File : Pio.File_Type;
        A_Db : Checkbook.Database;
    begin
        Pio.Open (File, Pio.In_File, Filename);
        Ops.Read (File => File, Item => Db);
        Pio.Close (File);
    exception
        when Pio.Name_Error =>
            Db := A_Db;
    end Read;

    procedure Write (Db : Checkbook.Database; Filename : String) is
        File : Pio.File_Type;
    begin
        Pio.Open (File, Pio.Out_File, Filename);
        Ops.Write (File => File, Item => Db);
        Pio.Close (File);
    end Write;
end Storage;