


Expandable Disk Arrays 
=================

Bill Honey 1993 

The files included in this zip file will allow you to have arrays of any type of
element of unlimited size (disc space allowing). 
Code is supplied as is. I take no blame for any misfortune that my occur as a result
of use or misuse.

I was prompted to write this class by the need to access large arrays of structures.
The problem I had was that I didn't know how big to make the array because I was
reading the structures from a file (of unknown length). In addition, the array sizes
were larger than 64K, which meant I couldn't declare them as local variables. Using
pointers was not the way I wanted to go, because I didn't want to alter the rest of
the code. 

The class stores the majority of the array on disc, whilst keeping some of it in
memory, swopping as necessary. 

To change from ordinary arrays to DskArrays should be simple


ORDINARY                           DISK ARRAY 

                                   #include <DskArray.h >
main()                             main()
{                                  { 
 int array[10]                      DskArray <int> array(10);

  for (int i =0; i < 10; i++)        for (int i = 0; i < 10; i++)
   array[i] = i;                      array[i] = i;
}                                  }


Refer to DSKARRAY.CPP for other types of usage 
