Reads a single line from the file : File Readline « File « Python






Reads a single line from the file


f=open('/tmp/workfile', 'w')
f.readline()

f.readline()

f.readline()

f.close()

           
       








Related examples in the same category

1.Read a file line by line
2.Reading a file: readlines and xreadlines