2 Replies Latest reply on Jul 15, 2008 3:25 AM by Milo[HUN]

    applicationDirectory access

    Milo[HUN]
      Hi there!

      my question is this: How can i write/modify content of a file which's resolve path is the applicationDirectory?
      Since now i gave the path to the documentDirectory where i had the access, but now i had to change this to applicationDirectory, and all my grants gone.
      i set the peth like this:
      fileObj = File.applicationDirectory.resolvePath(Name + ".xml");
      and than, the writing method does this:
      var stream:FileStream = new FileStream();
      stream.open(fileObj,FileMode.WRITE);
      ...
      stream.writeMultiByte(o_str,File.systemCharset);
      stream.close();

      any help would be fine! Thx :)