local function all_lines_the_same(filename, comparison_string) local file = io.open(filename, "r") if not file then print("Error: Unable to open file") return false end local file_lines = {} for line in file:lines() do table.insert(file_lines, line) end file:close() local string_lines = {} for line in comparison_string:gmatch("[^\r\n]+") do table.insert(string_lines, line) end local max_lines = math.max(#file_lines, #string_lines) local all_lines_same = true for i = 1, max_lines do local file_line = file_lines[i] or "" local string_line = string_lines[i] or "" if file_line ~= string_line then all_lines_same = false print(string.format("Mismatch at line %d:", i)) print("File: " .. file_line) print("String: " .. string_line) print() end end return all_lines_same end --[[ local function check_file_against_string(file_path, comparison_string) local ignore_prefixes = {'