Code Snippets C

#include "stdio.h"
int main() {
FILE *filep;
int letter;
if( ( filep = fopen( "myfile.txt", "r")) == NULL) {
puts("Cannot oepn the file");
exit( 0 );
}
while( ( letter = fgetc( filep ) ) != EOF)
printf("%c",letter);
fclose(filep);
}