hey everyone haven't been here in a long time but is this possible?

i have a two part question,

1) Is their a way to modified the contents of a text file from a flash movie? For example on the flash movie there are two buttons Yes and No, what I want to do is that when you click on the Yes button the text file gets modify and its contents would change to 1 and if it’s a No the contents would change to 2.

2) After the text file has been modify, I would like the same flash moive to read the text file and determine what frame it starts. For example if the text file contains a 1 then the movie would start in frame 1 or if the text file contains a 2 then the flash movie would start at frame 2

is it possible ?

tia