#include int main() { FILE *f = fopen("test.txt", "r"); FILE *g = fopen("sifra.txt", "w"); char c; if (f == NULL) { printf("Greska u citanju datoteke\n"); return -1; } if (g == NULL) { printf("Greska u citanju datoteke\n"); return -1; } while(1) { fscanf(f, "%c", &c); if (feof(f)) break; if (c >= 'A' && c <= 'Z') { if (c == 'Z') c = 'A'; else c = c + 1; } fprintf(g, "%c", c); } return 0; }