Question: 1) Complete the following script so that it will open the text.txt file to read and print each line. In the end the file will

1) Complete the following script so that it will open the text.txt file to read and print each line. In the end the file will be closed.

fn = ___________ (r"D:\data\test.txt"_____________, )

for_____________ in _________________ :

print aline

fn.______________

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!