ch08
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
# files/read_write.py
|
||||
with open('fear.txt') as f:
|
||||
lines = [line.rstrip() for line in f]
|
||||
|
||||
|
||||
with open('fear_copy.txt', 'w') as fw: # w - write
|
||||
fw.write('\n'.join(lines))
|
||||
Reference in New Issue
Block a user