I was wondering what the exact difference is between Android’s FileOutputStream and FileWriter class. When would it be most appropriate to use each one?
I was wondering what the exact difference is between Android’s FileOutputStream and FileWriter class.
Share
If I remember correctly, FileOutputStream is more general purpose – it can be used for binary data or text data. FileWriter is used for text only.
http://docs.oracle.com/javase/1.4.2/docs/api/java/io/FileWriter.html