I am reading two files f1 and f2 into my Python code and I need to compare them and get the result as a boolean.
def open_file(file_path):
with open(input_file, "rb") as f:
file = f.read()
return file
I can however compare them using filecmp
but this way, I need to specify the file path and not the variable file
from the function