Hey Guys, I am beginning to learn about reading files on the disk and I see these 3 methods: FileInputStream, DataINputStream, and BufferedReader. Below I posted 2 snippets that do exactly the same thing, the first reads a text file by only using bufferedreader and the second uses all 3 methods. What's the purpose and function of each: FileInputSteam, DataInputStream, and BufferedReader, and why would I use all 3 when it seems that I could do the same thing with only BufferedReader.
Thanks!
Only using BufferedReader
Using FileInputStream, DataINputStream, and BufferedReader