Question: Given the statement: fh = open ( fname , ' r ' ) . The method fh . readline ( ) returns a string object

Given the statement: fh = open(fname,'r'). The method fh.readline() returns
a string object with the current line read from the file
all the data in the file as a list of strings
all the data in the file as a string
An integer that indicates the current position in the file

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!