What I'm trying to do is read a simple text file in then encyrpt it,
for example A will become M, B becomes N, etc, this will be the output. But I can't get it to actually read the file.

The encyrption works fine, if I just prompt the user to manually enter the text, removing the file opening code.

Thanks for any help you can give me.




Code:
#include <stdio.h>

  FILE *fp;
      fp=fopen("c:\Documents and Settings\Mckinstry_MaL\Desktop\My-Projects\cipher.txt", "r");

int
main( void )
{
      
      int   ch;
      
      while( (ch = getchar()) != EOF ){
             if( ch >= 'A' && ch <= 'Z' )
                       ch += 13 ;
            
             putchar( ch ):
             
             }
      
}