Thank you, But what is the MODE of the file?
On 4月17日, 下午4时29分, Anh Khoa Nguyen Pham <npak...@gmail.com> wrote: > Hi, > Please use this command : > > FileOutputStream fos = new FileOutputStream(sdcardFile); > > Hope that it can help you! > > On Fri, Apr 17, 2009 at 3:26 PM, sunwrt <wrt.su...@gmail.com> wrote: > > > Hi,Guys, > > > I wrote a file to the sdcard, but it failed as follow: > > > String sdcardFIle = "/sdcard/xxx.txt" > > FileOutputStream fos = openFileOutput(sdcardFile, > > Context.MODE_WORLD_WRITABLE); > > > openFileOutput failed, because fIle "/sdcard/xxx.txt" contains a path > > seperator. > > > It is so strange. Is there another way to handle the situation ??? > > > Thanks in advance > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---