I\'m very new to programming (obviously) and really advanced computer stuff in general. I\'ve only have basic computer knowledge, so I decided I wanted to learn more. Thus I
with open("filename.txt", "w+") as file: for line in file: print line
This with statement automatically opens and closes it for you and you can iterate over the lines of the file with a simple for loop
with
for