/* read one file and encript the data and store it to another file */
#include
#include
main(argc,argv)
int argc;
char *argv[];
{
	char c;
	FILE *fp1,*fp2;
	clrscr();
	fp1=fopen(argv[1],"r");
	fp2=fopen(argv[2],"w");
	if(argc!=3)
	{
		printf("arguments error");
		return;
	}
	c=getc(fp1);
	while(c!=EOF)
	{
		c=c+1;
		putc(c,fp2);
		c=getc(fp1);
	}
	fclose(fp1);
	fclose(fp2);
	printf("success");
	getch();
}

/*
Exercise 1: Read file and decript the data then store it to another file
	 2. Read file and convert upper to lower then display the screen
	 3. Read file and convert lower to upper then display the screen
*/