1 Reply Latest reply on Apr 12, 2010 2:18 PM by Joe ... Ward

    Modify text file by different user?

    balasubramaniyan.S
      My AIR Application create one text file under Administrator. but guest user cannot modify that text file.The code is below
      //***********************************************
      var file:File = new File("file:///D:/BALA /test.txt ");
      var str = String(Math.round(Math.random()*9)+1);
      var fileStream:FileStream = new FileStream();
      fileStream.openAsync(file, FileMode.WRITE);
      fileStream.writeUTFBytes(str);
      fileStream.close();
      //***********************************************
      Can any one solve this issue?
      Thanks
      Regards
      Balasubramaniyan.S