Most text editors have a ‘Find’ or ‘Search’ function that you can use to search for text within a file. Usually, this can be accessed with ‘Ctrl+F’ or ‘Cmd+F’.