15 lines
215 B
C
15 lines
215 B
C
#include <stdio.h>
|
|
|
|
void main()
|
|
{
|
|
FILE *fp;
|
|
int c;
|
|
|
|
fp = fopen( "file", "r" );
|
|
if( fp != NULL ) {
|
|
while( (c = fgetc( fp )) != EOF )
|
|
putc( c, stdout );
|
|
fclose( fp );
|
|
}
|
|
}
|