i need a help in FILES in C : <p>i am using code blocks  trying to a write a simple code to display a file content on screen using a condition if the file didnt exist already 
the problem here is tht i already have a file in the directory 
but i get : "unable to open file " ? 
i am a beginner and i cant see where is the problem ...</p>

<pre><code>#include &lt;stdio.h&gt;
#include &lt;stdlib.h&gt;

int main()
{
  FILE *f ;
   char ch ;


  f= fopen("C/:f.txt","r");
   if (f == NULL)
    {
        printf("unable to open file \n");
        system("PAUSE");
     return 0 ;
     }


   do {
    ch  = getc(f);
    fprintf(f,ch);
      }while(ch !=EOF) ;

  fclose(f);

  printf("/n");
  system("pause");
  return 0 ;

  }
</code></pre>
