>Expression: stream != NULL
Yet more proof (as if we needed any) that checking for success is a good thing. perror is your friend, my friend:
fp = fopen ( filename, "r" );
if ( fp == NULL ) {
perror ( "Error opening file" );
exit ( EXIT_FAILURE );
}
I'm here to prove you wrong.