I'm having trouble coming up with a prototype program to store and use a 1,000,000,000 x 1,000,000,000 size array using the long data type.

Some information. Please correct me if I'm wrong.

- I need to be able to set, store, and read 1,000,000,000,000,000,000 elements . Yes, that’s allot, but it is what I'm trying to shoot for.

Using put:
- A long is stored as 6 bytes
- The record length can't exceed 32,767 bytes
-That gives us about 5000 elements per record

- There seems to be a limit of 2,147,484,647 records per file (because that is the limit of the Seek function)
- Can store up to 10,000,000,000,000 elements per file

-1000000000000000000 \ 10000000000000 = 100,000
- 100,000 files will be required to store the array??? Is this correct?


How many files can you have open at one time? I seem to get a memory error around the 500 mark.

Is there anyway to reduce the number of files needed? - Maybe just use one big file?

Any help would be great as I'm not used to working around the limits of VB 6.0 .