#include <stdio.h>
#include <process.h>
void main(){
FILE *fp;
char filename[30],str[30];
printf("please input filename:\n");
scanf("%s",filename);
if((fp=fopen(filename,"r"))==NULL){
printf("can not open!\nprocess any key to continue:\n");
getchar();
exit(0);
}
fgets(str,sizeof(str),fp);
printf("%s",str);
printf("\n");
fclose(fp);
}