From what I can read on Stack Overflow, the FileReader only takes files, where the FileInputStream can read all. But is there any advantages in using the FileReader then? Is it faster?
I read that:
"FileReader does not allow you to specify an encoding and instead uses the plaform default encoding, which makes it pretty much useless as using it will result in corrupted data when the code is run on systems with different platform default encodings."
But didn't quite get it. What does platform default encodings mean?
The Main difference is:
Stream - Byte Based(Read or write Bytes)
Reader - Character Based(Read or Write Character)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With