def readfile(filepath): with open(filepath, "r") as file: lines = file.readlines() for line in lines: print(line.strip())