Course contentsShow
Java
Lesson 2010 of 2,87040. File I/O: Character StreamsPro lesson

Detecting End-of-File with readLine

Learn why readLine() returns null at EOF and how to use this to terminate reading loops correctly.

This lesson is for subscribers

You've completed the free preview. Subscribe to unlock every lesson in every course.