Program Python untuk menghapus karakter baru dari file
with open('file1.txt','r+') as f:
line = f.readlines()
print(line)
[print(l.strip()) for l in line]
Man
with open('file1.txt','r+') as f:
line = f.readlines()
print(line)
[print(l.strip()) for l in line]