in flash:
Code:
myVar = escape("this string has non-chars @^#&*")
then write that variable's contents to your file. Also remember to search the forums as we've dealt with this many times. In fact if you search you will find some opens ource by me which writes a text file with the escaped vars in it to save you having to copy and paste.
PS - the reverse is unescape() but it's prolly not necessary when loading variables in as Flash will most likely read them is as the special chars they are.
__________________
Cheers
Jesse Stratford
ActionScript.org Cofounder
Please
don't email or PM me Flash questions, that's what the Forums are for!
Please don't rely on me reading my PMs either. Email me about important stuff.