This is my noob question for the week. I'm looking more for general speculation than specific code and maybe hoping the Android folks are watching and could correct this:
the SDK documentation for Context.openFileOutput says:
Open a private file associated with this Context's application package for writing. Creates the file if it doesn't already exist.
Ok, that sounds good. I can create a file. Except this method also throws a FileNotFoundException, so apparently something is amiss. Why would a function that is supposed to create a file if it's not found throw an exception if the file is not found???
Kinda defeats that whole "Creates the file..." thing, doesn't it?
detailMessage
of your FileNotFoundException? you cannot use file separators in the method call (its stated in the docs, and in that case detailMessage is "File [...] contains a path separator"). – guido Feb 17 '11 at 21:55