View Single Post
  #2 (permalink)  
Old 01-21-2003, 11:43 PM
SWFKit SWFKit is offline
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re: create a file and save flash information in it

Code:
//creates a tmp file and writes the variables into it
var path = Shell.getSpecialFolder("temp");
var name = path + "\\1.txt";
trace(name);
var f = new FileStream(name, "w");
f.writeLine("&name=mark");
f.writeLine("&registered=yes");
f.writeLine("&blah=blalalala");

f.close();

//tests the file
Shell.open(name);


or

Code:
//creates a tmp file and writes the variables into it
var path = Shell.getSpecialFolder("temp");
var name = path + "\\1.ini";

var myini = new Ini(name);
myini.writeString("var", "&name", "mark");
myini.writeString("var", "&registered", "yes");
myini.writeString("var", "&blah", "blalalala");


//tests the file
Shell.open(name);
Reply With Quote