Write a Program to open any file from any location

/* This is Program to open any file from any location */
#include<stdio.h>
#include<conio.h>
int main()
{
FILE *fp ; /* fp is file pointer we can use any word
exmp: FILE *in FILE *sd */
char c ;
fp=fopen( ” D:\\info.txt ” , ” r ” ) ; //here we are opeing file info.txt for any process
if( fp== NULL )/*This shows whether file opened successfully or not */
printf( ” File Does not Exist ” );
else
{
while(c!=EOF)//EOF means End of file
{
printf(” %c ” , c ) ;
c=getc(fp);
}
fclose(fp) ; //after all process we should close our file.
//Done
}
getch();
return 0;
}