Dev c++ code not compiling in viusual c++(codeblocks vs Visual Studio)(Begineer) : For some odd reason file declaration works diferently in Visual Studio the it does in code blocks.
The following code runs perfectly fine in code:blocks but won't compile in Visual,and i don't have a clue why so.Couldn't figure out

    int n;
    FILE * pFile;
    pFile = fopen ("date.in","r");
    fscanf(pFile,"%d",&n);
	printf("%d", n);
    return 0;

using cstdio and stdfax respectivly
