#include 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 ); } }