actionscript 3 - AS3 / AIR - Creating a plain text file? -



actionscript 3 - AS3 / AIR - Creating a plain text file? -

is possible create plain text file as3 or air?

example: create plain text file named "mytextfile.txt", have contain text reads "this text file." , save desktop.

another alternative have file exist in directory, have rewrite contents - assuming easier.

all of should happen background process, without save dialoge panel appearing.

var file:file = file.desktopdirectory.resolvepath("mytextfile.txt"); var stream:filestream = new filestream(); stream.open(file, filemode.write); stream.writeutfbytes("this text file."); stream.close();

actionscript-3 file air plaintext

Comments

Popular posts from this blog

java - How to set log4j.defaultInitOverride property to false in jboss server 6 -

c - GStreamer 1.0 1.4.5 RTSP Example Server sends 503 Service unavailable -

Using ajax with sonata admin list view pagination -