I want to read each line from a text file and store them in an ArrayList (each line being one entry in the ArrayList).
So far I understand that a BufferedInputStream
Use a normal InputStream (e.g. FileInputStream) wrapped in an InputStreamReader and then wrapped in a BufferedReader - then call readLine on the BufferedReader.
InputStream
FileInputStream
InputStreamReader
BufferedReader
readLine
DataInputStream is good for reading primitives, length-prefixed strings etc.
DataInputStream