#include <stdio.h>
#include <stdlib.h>
main (int argc,char *argv[])
{
char ch;
FILE *fp;
int i;

if((fp=fopen("test.txt","r"))==NULL)
{
printf("Can not open the file:\n");
exit(0);
}

while((ch=fgetc(fp))!=EOF)
putchar(ch);
fclose(fp);

 

}

相关文章:

  • 2021-11-21
  • 2021-11-24
  • 2022-12-23
  • 2022-01-27
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-22
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案