Code:
/* This program expects the name of an input file and an output
file to be given by the user.
      Name : Dang Vo
	  Date : 04/14/11
*/

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define NUM_LINE 21

typedef struct
{
	char states[100];
	char cities[100];
	int tempt;
} INFO;
void getData(FILE *spData, INFO list[]);  
void insertionSort(INFO list[], int last);

int main (void)
{

// Local Declarations

FILE *spData = fopen("in.txt", "r");
INFO list[NUM_LINE];


// Statements
getData(spData, list);

return 0;
}

/*========================== getData========================
Pre: FILE *spData
Post: FILE *spData 
*/
// Local Declarations
int i;  

void getData(FILE *spData, INFO list[NUM_LINE])
{
	if((spData = fopen("in.text", "r")) = NULL)
        printf("Error openning in.txt\n");
 
for (i = 0; i < NUM_LINE; i++)
fscanf(spData,"%s %s %d", list->states, list->cities, list->tempt );

fclose(spData);
return;
}
i have this code here when i try to run it it say debug assertion failed what did i do wrong?