[Solved] Reading and Writing from files in python [closed]

[ad_1]

You could try something like this:

f = open("C:/file.txt", "r")  #name of file open in read mode

lines = f.readlines()   #split file into lines

print(lines[1])  #print line 2 from file

1

[ad_2]

solved Reading and Writing from files in python [closed]