def read_txt_file(file_path): with open(file_path, 'r') as file: lines = file.readlines() return lines