I sucessfully compiled it under linux and windows it works under linux but under windows it gives an error when I run it.
Code:#include <stdio.h> int main(int argc,char* argv[]){ FILE *fin,*fout; int c; char key[]={(int)argv[3]}; if ((fin=fopen(argv[1],"r"))==NULL){ printf("\nERROR\n"); return 0; } fout=fopen(argv[2],"w"); while((c=fgetc(fin))!=EOF){ c=c^key[0]; fputc(c,fout); } fclose(fin); fclose(fout); return 0; }