Mike, you will find that the C function "fread" is much faster.
Open the file with fopen, and when reading in the array you just supply the pointer to the start of the array (i.e. the array name) and the size and number of elements to read in. For example:
short myarray[NDIM];
fp = fopen (datafile, "rb");
fread (myarray, sizeof(myarray),1,fp);
fclose(fp);
A bit more work is needed if you are not reading in the whole array in order (which is very fast), but hopefully this will help.
--Ian
Message Edited by Ian W on 05-12-2005 10:45 AM
Message Edited by Ian W on 05-12-2005 10:45 AM