|
|
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: 794 (0x31a)
Types: TextFile
Names: »B«
└─⟦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⟧
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;