first
This commit is contained in:
10
read_cat.py
Normal file
10
read_cat.py
Normal file
@@ -0,0 +1,10 @@
|
||||
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())
|
||||
Reference in New Issue
Block a user