hello guys im having a problem.. i have a text file name employee.txt and it is the construction of the text file..

Juan Dela cruz,A02-0001,1
C plusplus,A02-0002,2
Pedro Dela Cruz,A02-0003,3

now i have done coding when the user input the emp id and then it will search through the file..when i search A02-0001

it only outputs

A02-0001,1 (no Juan Dela Cruz)

and also when i search the A02-0002 nothing happens..
by the way here's my code.

Turbo c++ Code:
  1. #include <conio.h>
  2. #include <stdio.h>
  3. #include <string.h>
  4.  
  5. main(){
  6.  clrscr();
  7.  FILE *rf;
  8.  char getLine[50];
  9.  char searchWord[50];
  10.  char *rWord;
  11.  printf("Enter emp ID: ");
  12.  scanf("%s",getLine);
  13.  rf = fopen("C:\\employee.txt","r");
  14.  fgets(searchWord,50,rf);
  15.  if (!feof(rf)){
  16.      rWord = strstr(searchWord,getLine);
  17.      printf (rWord);
  18.  }
  19.  getch();
  20.  return 0;
  21. }

i use the turbo c++ compiler..

thanks in advance