I've got a program that works fine while i'm in the VC program, however, when I try to launch the .exe stand alone I get this nasty little message:

Debug Assertion Failed!
Program: C:\My.....
File: fseek.c
Line: 101
Expression: stream != NULL

I'm sure i'm just missing it. Maybe someone can suggest a better way to get i/p from a text file... Any help is appreciated...
Code:
void CPeekaViewDlg::OnGetit() 
{
	UpdateData(TRUE);
	
	FILE *stream;
	char s[255];
	int i=74;
	int convert;
	stream=fopen("t2.tre","r");
	fseek(stream, i, SEEK_SET);
	fscanf(stream,"%s\n",s);
	m_crap = s;
	convert = atoi(s);
	if(convert>9)
	{
		i += 3;
	}
	if(convert<9)
	{
		i += 2;
	}
	fseek(stream, i, SEEK_SET);
	fscanf(stream,"%s\n",s);
	m_show = s;


	fclose(stream);

	UpdateData(FALSE);

}