1

i want to save the value of a variable into a existing .txt file. But when i run the file, the program generates a new .txt file everytime i press save..

Please help me..

here is my code so far.

var file:FileReference = new FileReference();

        var ba:ByteArray = new ByteArray();
        ba.writeUTFBytes(total_text.text);

        file.save( ba, "register.txt" ); 
2

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.