#include <stdio.h>
#include <string.h>
int main(){
FILE *pFile;
char buffer[1024];
pFile = fopen( "target.txt", "r" );
if ( NULL == pFile ){
printf( "Open failure" );
return 1;
}else{
fread( buffer, 1024, 1, pFile );
printf( "%s", buffer );
}
fclose(pFile);
return 0;
}
read read.c target.txt (3 files)
相關文章
文章標籤
全站熱搜
留言列表