Please send questions to st10@humboldt.edu .
/*-----
  Contract: main: void -> int

  Purpose: testing program for the function get_file_contents
  
  Examples: when the user runs the program test_get_file_contents,
            the following
            be printed to the screen:
scores[0] -> 90
scores[1] -> 80.5
scores[2] -> 85.5
scores[3] -> 99

  by: Sharon M. Tuttle 
  last modified: 4-23-07
  -----*/

#include <iostream>
#include "get_file_contents.h"
using namespace std;

int main()
{
    const int NUM_SCORES = 4;
    double scores[NUM_SCORES];

    if (! get_file_contents(scores, NUM_SCORES, "scores.txt"))
    {
        cout << "uh oh --- couldn't open file!" << endl;
        return EXIT_FAILURE;
    }

    // if reach here --- SHOULD have filled array??
    
    for (int i=0; i<NUM_SCORES; i++)
    {
        cout << "scores[" << i << "] -> " << scores[i] << endl;
    }

    return EXIT_SUCCESS;
}