flash Air 在同一个目录下面创建txt,写入字
import flash.filesystem.*; var file:File=new File(File.applicationDirectory.nativePath + '/HelloWorld.txt'); var stream:FileStream = new FileStream() stream.open(file, FileMode.WRITE); var str:String = "Congratulations on AIR Save Path"; stream.writeUTFBytes(str); stream.close();
posted on 2018-07-19 16:36 zqiang0803 阅读(178) 评论(0) 编辑 收藏 举报