15 lines
236 B
C
15 lines
236 B
C
|
#include <stdio.h>
|
||
|
|
||
|
void main()
|
||
|
{
|
||
|
FILE *fp;
|
||
|
char buffer[80];
|
||
|
|
||
|
fp = fopen( "file", "r" );
|
||
|
if( fp != NULL ) {
|
||
|
while( fgets( buffer, 80, fp ) != NULL )
|
||
|
fputs( buffer, stdout );
|
||
|
fclose( fp );
|
||
|
}
|
||
|
}
|