Trouble with data storage

I need to create a program that takes in doubles and then calculates the greatest value and the smallest value out of the entire data list. I cant use a vector or an array as in some cases the program will be taking in millions of numbers fed to it from an external file and storing all the numbers and then calculating them would take far too long. My trouble is I can't find a way to calculate the smallest value without using an array of some kind. Any help is much appreciated. Thanks!
1. Read block of data from file.
2. Find max and min in block of data.
3. Compare the new max and min to the existing max and min, and replace and appropriate.
4. If no more data to read, end; otherwise go to step 1.
Topic archived. No new replies allowed.