How do you read the first line of a text file in Java?

How do you read the first line of a text file in Java?
Answer
use BufferedReader. readLine() to get the first line.
 

Tìm kiếm

Back
Top