android - openFileOutput FileNotFoundException -


this noob question week. i'm looking more general speculation specific code , maybe hoping android folks watching , correct this:

the sdk documentation context.openfileoutput says:

open private file associated context's application package writing. creates file if doesn't exist.

ok, sounds good. can create file. except method throws filenotfoundexception, apparently amiss. why function supposed create file if it's not found throw exception if file not found???

kinda defeats whole "creates file..." thing, doesn't it?

i have apologize leaping before looked on one. kinda panicked while reading documentation. after testing, found openfileoutput() does, in fact, work advertised , will create file if it's not found, not throw fnf exception feared. apparently, fnf throw added in case activity's application directory not exist.

again, apologies hopefully, might others confused documentation.


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -