Kizspy | Question: 23
(Choose 1 answer)
If we open a file as follows:
xfile
open('mbox.txt')
What statement would we use to read the file one line at a time?
A. for line in xfile:
B. while (getline (xfile, line)) {
C. READ xfile INTO LINE
D. READ (xfile,*, END=10) line