Is scanner the only way in Java to read a file? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Is scanner the only way in Java to read a file?

Scanner alternative

12th Oct 2016, 11:47 PM
Mehdi Hermi
2 Answers
0
You can also read a file using 'BufferReader'.
13th Oct 2016, 3:30 AM
Akash Middinti
0
No, but Scanner is the easiest to implement.
16th Oct 2016, 10:13 AM
Sławek Śpiewak
Sławek Śpiewak - avatar