#include<stdio.h>
#include<stdlib.h>
#include<string.h>
int main(void)
{
char filename[] = "/var/log/kern.log";
FILE* f = fopen(filename, "r");
char c;
while((c = fgetc(f)) != EOF){
putchar(c);
}
fclose(f);
}
打印结果
最新推荐文章于 2023-04-17 14:01:47 发布