Hi
How to read the second line in text file(MyData,txt)

MyData.txt

line1
line2
line3
line4
line5

read the second line

f = open ("MyData.txt","r")
for line in f:
    if line == 2:
        print line
    else:
        print "somthing wrong !"
f.close()