+ 1
How to edit file by using open, read, write and close options in python shell
when I write: file=open("myfile.py") reading=file.read() print(reading) it just skips one blank line and shows >>>
2 Respuestas
+ 9
try this
with open(filename,"r") as myfile:
for line in myfile.read():
print(line)
+ 1
@_Nick thanks