Chapter 6: Problem 13
What does it mean when the readline method returns an empty string?
Short Answer
Expert verified
Answer: The readline method returning an empty string signifies that the end of the file has been reached. When used in a loop, it allows the loop to be terminated when there are no more lines to read, preventing errors or infinite loops.