I have need to find a particular string from a text file. The user inputs the string they're looking for and the program searches through the opened text file to find that string. Is that possible?
void exam()
{
char name[50], rollno[50];
FILE *search;
printf("\t\t________________________________");
printf("\n\n\t\t\tPortal Examination");
printf("\n\t\t_______________________________");
printf("\n\tEnter Name : ");
scanf("%s", name);
search = fopen("Students.txt", "r");
//not sure where to go from here
}