Code:
#include <stdio.h>
#include <stdlib.h>

int main (void)

{
  FILE* spData;
 if((spData = fopen("HR.text", "r")) == NULL)
 {
	 printf(" Error openning file!");
	 exit(100);
 }
  return 0;
}
i tried to run this code from the book but it only run in codeblock, it fail at debugging in mvs