Hi, you done one thing while write the file this application file open as a document file and write it.
var adbConfigFile:File; // The Config preferences File var adbConfigStream:FileStream = new FileStream(); // The FileStream object used to read and write data. var adbConfigXML:String; // The XML data adbConfigFile = File.applicationDirectory.resolvePath("xmlurl.xml"); if ( !adbConfigFile.exists ) { return; } adbConfigStream.open(adbConfigFile,FileMode.READ); adbConfigXML = adbConfigStream.readUTFBytes(adbConfigStream.bytesAvailable).toString(); adbConfigStream.close(); var outputAdConString:String; outputAdConString = adbConfigXML.toString(); adbConfigStream = new FileStream(); var appAdFile:File = File.documentsDirectory.resolvePath(adbConfigFile.nativePath.toString()) adbConfigStream.open(appAdFile, FileMode.WRITE); adbConfigStream.writeUTFBytes(outputAdConString); adbConfigStream.close(); hope this will solve your problem Regrads, Jakir Saba software india pvt ltd. 9923505286 On Mon, Nov 16, 2009 at 3:27 PM, riaflexible <riaflexi...@gmail.com> wrote: > Hi All : > > I have read that Air wont allow to write to Applications Directory , > i.e File . applicationDirectory is just a Read Only Directory . But I > have a requirement where in i have to save the userPrefs file & logs > in the Application install directory . > > I knew that most of the Air Apps write there data to the File . > applicationStorageDirectory . As of now that is what i have done , But > mostly clients won't like that , Because it is difficult to document , > Also end users will find difficult to find the Directory path ( Mac : > - Users/ user name / Library / Preferences / > applicationID.publisherID/Local Store/" ) . > > I think writing to user directory or desktop or documents directory is > not appropriate one . > > Any inputs or better approach would be appreciated . > > Thanks, > Satish > > -- > > You received this message because you are subscribed to the Google Groups > "Flex India Community" group. > To post to this group, send email to flex_in...@googlegroups.com. > To unsubscribe from this group, send email to > flex_india+unsubscr...@googlegroups.com<flex_india%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/flex_india?hl=. > > > -- Thanks & Regards Jakir M. Qureshi -- You received this message because you are subscribed to the Google Groups "Flex India Community" group. To post to this group, send email to flex_in...@googlegroups.com. To unsubscribe from this group, send email to flex_india+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/flex_india?hl=.