Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

save vars to harddisk

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I use this funktion to save variables to the users harddisk:

fscommand ("exec", "command.com\t/c\techo\variable=x\t>>file.txt");

file.txt is the file the information is saved to,
variable=x is the text. which is saved in the txt file.

But I want the value of x to be written to the txt file, not the letter x,

so i get variable=1 (if x is 1), how can i make this?
 
Look into concatenation operators --

I'm no actionscripter, but the basic syntax will VERY likely look something like this:

fscommand ("exec", "command.com\t/c\techo\variable=" & x & "\t>>file.txt");
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top