#include<stdio.h> int main() { int c; FILE *f = fopen("message", "r"); while ( (c=fgetc(f)) != EOF) { if (c>='A' && c<='Z') { c = c+5; if (c>'Z') {//gone off the end c = (c - 'Z' -1) + 'A' ; } } putchar(c); } }