#include <stdio.h>
#define BUFFER_SIZE 80
int main()
{
FILE* fp = fopen("fp.txt" ,"r");
char buf[BUFFER_SIZE];
if(fp!=NULL)
{
while (!feof(fp))
{
fscanf(fp ,"%s",buf);
printf("Read line: %s\n" ,buf);\
printf("\n");
}
}
fclose(fp);
}
//need create fp file
UW
CSE
how to stop CSE dont repeat CSE again. Can you use condition if-else do-while etc.