[code]
//var dir:File = File.documentsDirectory.resolvePath("bin");
//dir.createDirectory();
file = File.documentsDirectory;
file = file.resolvePath("mylog.txt");
fileStream = new FileStream();
fileStream.open(file, FileMode.APPEND);
fileStream.writeUTFBytes(temp);
fileStream.close();
[/code]