11 lines
239 B
Python
11 lines
239 B
Python
def read_cat_file(filename="cat_file"):
|
|
out_list = []
|
|
with open(filename, "r") as cat:
|
|
for line in cat:
|
|
out_list.append(line.rstrip())
|
|
return out_list
|
|
|
|
|
|
if __name__ == "__main__":
|
|
print(read_cat_file())
|