#include <stdio.h>
#include <stdlib.h>
int main(void)<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />
{
FILE *fp;
char ch;
if((fp=fopen("d:\\C_exercise\\example\\c1.txt","r"))==NULL)
{
printf("Cannot open file.\n");
exit(1);
}
while((ch=fgetc(fp))!=EOF)
putchar(ch);
putchar('\n');
fclose(fp);
return 0;
}
文章评论(0条评论)
登录后参与讨论