title: Allow the user to search a specific staff in system
body: <pre><code>void searchStaff() {
  
  int id, found;
  struct staff sta;
  FILE*fp2, *temp;
  
  printf("Enter the ID number you want to search:\n ");
  scanf("%d", &amp;id);
  
  fp2 = fopen("Staff", "rb");
  temp = fopen("temp", "wb");
  printf("Staff Details\n");
  printf("ID NUMBERS\t NAME\n");
  printf("=========================");
  while (fread(&amp;sta, sizeof(sta), 1, fp2) 
  {
      if (id == sta.id) {
          printf("%d\t\t %s\n", sta.id, sta.name);
          found = 1;
  
      }
      else {
          fp2 = (NULL);
          printf("No such record!!");
          fwrite(&amp;sta, sizeof(sta), 1, temp);
          found = 0;
  
      }
  }
  fclose(fp2);
  fclose(temp);
  if (found == 1) {
      system("Staff");
  }
  }
  </code></pre>
  
  <p>It will trigger the break point during the while line...but it won't display the results.  How do i fix it? It is supposed to read the ID in and display the results.</p>