I guess you have not allocated the memory for the structs you want to store in the array.
 Code:
while (i < maxentries)
{
	// First allocate the memory needed.
	speechbank[i] = (DIALOGUE*)malloc(sizeof(DIALOGUE);
	speechbank[i].textstr = str_create("#128");
	// Then you can read the data and store it in the array.
	speechbank[i].opcode = file_var_read(filehandle);
	speechbank[i].actor = file_var_read(filehandle);
	file_str_read(filehandle,speechbank[i].textstr);  
	i++;
}
Does that solve your problem?


Always learn from history, to be sure you make the same mistakes again...