#include <stdio.h>
int main(void)
{
FILE *fp;
char buffer[255];
fp = fopen("d:\\test.txt","r");
if (!fp) return 1;
while (fgets(buffer, 255, fp) != NULL)
printf("%s", buffer);
fclose(fp);
return 0;
}
/*
run: (the content of d:\\test.txt)
C
Programming
Is The Best
*/