What I was thinking about was like storing a number in the file, say 1..2..3..N
then have an array of radio buttons or something like that and the number in the file would be the radio button index that is selected, this is just off the top of my head, not sure if it will actually be able to be done the way your doing it.