标签:tor turn 路径 top div system ati read bom
import flash.filesystem.File; import flash.filesystem.FileMode; import flash.filesystem.FileStream; /** * 读取文本 字符串 * @param _pathUrl 文本路径 * @return 字符串 */ public static function readFile(_pathUrl:String):String{ var fileStream:FileStream = new FileStream(); fileStream.open(new File(_pathUrl), FileMode.READ); var data_str:String= fileStream.readUTFBytes(fileStream.bytesAvailable); fileStream.close(); return data_str; } //延伸 var dir:File = File.applicationDirectory; //应用程序安装目录 var dir:File = File.getRootDirectories(); //文件系统根目录 var file:File = File.userDirectory; //指向用户文件夹 var file:File = File.documentsDirectory; //指向用户文档文件夹 var file:File = File.desktopDirectory; //指向桌面 var file:File = File.applicationStorageDirectory; //指向应用程序存储目录 var file:File = File.userDirectory; file = file.resolvePath(“Mousebomb”); trace(file.nativePath);
标签:tor turn 路径 top div system ati read bom
原文地址:https://www.cnblogs.com/dt1991/p/12460735.html