

// THIS IS JUST PSEUDOCODE !!!!!!!!!!!!!!!!!!!!!!



void readFromFile(Birthday_S **headPtr, Birthday_S **tailPtr)
{

  // @@@ need to declare some variables

  cout << "enter filename: ";
  cin >> filename;


  // open the file and check for errors

  ifstream inf(filename,ios::in);

  // ...


  inf.getline(inputLine,MAX);
  while (inf.eof())
    {
      // processing code here

      p = new Birthday_S;

      p->next = NULL;

      parseline(inputLine, p); // use strtok to get info out of line and into p

      // THIS PART FROM HERE TO ...

      if ( (*head) == NULL)
	(*head) = p;
      else
	(*tail)->next = p;

      (*tail) = p;

      // ... HERE, IS THE PART THAT ADDS AT THE TAIL OF THE LIST

      inf.getline(inputLine,MAX);
    }  



}
