how do i search for a name in a txt file

i have a program where i have to search for a name in a txt file. how do i do this. there is a lot more that this to this program but here is the main and the just the bool is present function.
this is the main:

Last edited on
pls use code tags

<> on the right of where you type
Topic archived. No new replies allowed.