qfedu-c-level/day14/d7.c

16 lines
226 B
C
Raw Normal View History

2023-07-21 00:58:46 +08:00
#include <stdio.h>
#include <string.h>
int main()
{
FILE *f = fopen("d7.txt", "r");
char line[100] = "";
while (fgets(line, 100, f) != NULL)
{
printf("%s", line);
}
fclose(f);
return 0;
}