(* Collection of code snippets by Arne Vajhøj *)
(* (from articles on eksperten.dk / vajhoej.dk written sometime between 2004 and now) *)
program list_before_2(input, output);

%include 'address_isam.pas'

var
   addr : address;
   db : file of address;

begin
   open(db, 'address.isq', unknown, organization := indexed, access_method := keyed);
   resetk(db, 0);
   while not eof(db) do begin
      addr := db^;
      writeln(addr.id,'|',addr.name,'|',addr.address);
      get(db);
   end;
   close(db);
end.
