fileoutputstream

FileOutputStream and exception handling

I'm trying to run this piece of code inside my onCreate method as an initial test into writing private data for my app to use. This code is straight out of the Android SDK development guide located here (http://developer.android.com/guide/topics/data/data-storage.html#filesInternal) String FILENAME = "hello_file"; String string = "hello...

InputStreams being GCed

I know that if I do something like copyFromInToOut(new FileInputStream(f1), new FileOutputStream(f2)); System.gc(); It will run the GC on those FileInputStreams, closing them. But if I do copyFromInToOut(new BufferedInputStream(new FileInputStream(f1)), new BufferedOutputStream(new FileOutputStream(f2)); System.gc(); Is there any...