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