Search for a charactter in a file

do you know any function to do this?