char ch=0; FILE *p = NULL, *q = NULL; p = fopen(argv[1], "r+"); q = fopen(tempfilename, "w+"); while ((ch = getc(p)) != EOF) { // Normal if else statements }
int ch;
while ( 1 ) { ch = fgetc ( fs ) ; if ( ch == EOF ) break ; else fputc ( ch, ft ) ; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)