Answers for "Python program to remove newline characters from a file"

0

Python program to remove newline characters from a file

with open('file1.txt','r+') as f:
	line = f.readlines()
	print(line)
	[print(l.strip()) for l in line]
Posted by: Guest on December-03-2020

Code answers related to "Python program to remove newline characters from a file"

Python Answers by Framework

Browse Popular Code Answers by Language