python print content of py file code example
Example: code for showing contents of a file and printing it in python
import os
with open("filename", "r+") as file:
content = file.readline()
while(content!=""):
print(content)
content = file.readline()
file.close