0

Work with file in python

file = open ("VT.txt", "r") for i in file : print (file.read ()) file.close () When i run this code, I don’t get first line of file VT.txt Remaining all lines get it.

25th Mar 2020, 9:51 PM
Vishal Tala
Vishal Tala - avatar
2 odpowiedzi
0
Change the name of the variable Plus, i'm pretty sure you can do: File_ = open("vt...","r").read() Try it and let me know if it works :)
26th Mar 2020, 12:54 AM
ליאם לסרי
0
thanks dear for help me but still it doesn’t work
26th Mar 2020, 6:22 AM
Vishal Tala
Vishal Tala - avatar