title: How to copy a image to a Directory in C language
body: <p>I was trying to copy a image file using file open and write file method, but enable to achieve the image... So please help me out with the code along with the header file required.</p>
  
  <pre><code>   char ch, source_file[20], target_file[20];
     FILE *source, *target;
     source = fopen("Source", "r");
     if( source == NULL )
     {
     printf("Press any key to exit...\n");
     }
     target = fopen("Destination", "w");
     if( target == NULL )
     {
     fclose(source);
     }
  
     while( ( ch = fgetc(source) ) != EOF )
     fputc(ch, target);
  
     printf("File copied successfully.\n");
  
     fclose(source);
     fclose(target);
  </code></pre>
  
  <p>I tried This....</p>