while loop more efficient

This commit is contained in:
Robyn Drake 2021-12-21 11:48:51 -06:00
parent ac8f545de1
commit 298d40e4d3
1 changed files with 2 additions and 2 deletions

View File

@ -11,8 +11,8 @@ int main(int argc, char *argv[]){
while ((ch = fgetc(file)) != EOF)
{
printf("%c", ch);
}
putchar(ch);
}
fclose(file);
}
}