Main article: https://funnelgarden.com/java_read_file/
How to read files in Java 7, 8 and 9 with examples of readers like BufferedReader readLine method, Scanner, InputStream, InputStreamReader, FileInputStream, BufferedInputStream, FileReader, new Java I/O classes, Guava and Apache Commons. See examples of how to open, load, import file content, parse and close files, READ LINE BY LINE TO STRING OR BYTE ARRAY.