Opening a File in C

Does someone know if the file I want to open should be in same folder where my programme is or where have to be saved? I try to open a File and print its context, however it seems that the complier cannot find it.

Here is my code:

    #include <stdio.h>     #include <stdlib.h>      int main ()     {          FILE *pFile;         pFile=fopen("hallo.txt","r" );         char singleLine[100];       while(!feof(pFile)){              fgets(singleLine,100,pFile);             puts(singleLine);       }        fclose(pFile);      return 0;     }

>int main () >{ > >    FILE *pFile; >    pFile=fopen("hallo.txt","r" ); >    char singleLine[100]; > > while(!feof(pFile)){ > >        fgets(singleLine,100,pFile); >        puts(singleLine); > } >  fclose(pFile); > >return 0; >}