cout<<"SEARCHING A PATIENT PROFILE: \n";
cout<<"Enter User id: ";
cout<<"Data found at line: "<<counter<<endl;
each line of the file has a unique id that i want to do the search based on that id, if the id is found the total line to be displayed. but this function only works well with the first line, so if i search something in the second or other lines it will not find them.