CBSE Class 12 Computer Science
Question 43 of 136
Data File Handling — Question 8
Back to all questionsfobj.readline()
Reason — The syntax to read a line in a file is <filehandle>.readline(). Hence according to this syntax fobj.readline() is correct format.