File Handling and Searching:
- The file is opened with
utf-8
encoding. - Each line in the file is read using
enumerate
to get both the line number and the line content. - If a line matches the pattern, it prints the file path along with the line number and the matching line.
- The file is opened with
Starting Search:
- The search starts from the current directory (
'.'
) by calling the function with this argument.
- The search starts from the current directory (
This program will recursively search through all files in the specified directory and its subdirectories, printing the paths of files that contain lines with numbers ending with "98".