Use Ctrl-H to replace in a text editor
x = open('filename','r') to open files
y = x.read() to store contents of the file into a variable
z = x.readlines() to store different lines into a list
for line in z:
z.rstrip("\n") to remove newline character