Hi newbie here having a problem at R/T with the following function. It is giving me a application error when the program is run, but compiles just fine.

Function call:
Code:
student::readfile(filename, ctr, ARRAY);

Function:
Code:
void student::readfile(string file, int &ctr, student* arr[])
{
	ifstream in(file.c_str(), ios::binary);
	if(!in)
	{
		throw studentX("No file");
	}
	for(int i=0; i<ctr; i++)
	{
		in.read((char*)arr[i], sizeof(student));
	}
}
Thanks in advance for any ad all help.

:-) James