# Read text file and set the radio button values

**URL:** <https://www.ruby-forum.com/t/read-text-file-and-set-the-radio-button-values/188777>\
**Category:** Ruby\
**Created:** [May 18, 2010, 12:09pm UTC](https://www.ruby-forum.com/t/read-text-file-and-set-the-radio-button-values/188777 "2010-05-18T12:09:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sweetzubair](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/7feea3/32.png) [@sweetzubair](https://www.ruby-forum.com/u/sweetzubair)\
**Post date:** [May 18, 2010, 12:09pm UTC](https://www.ruby-forum.com/t/read-text-file-and-set-the-radio-button-values/188777/1 "2010-05-18T12:09:25Z")

</div>

hello,

i write this code for getting radio button value from text file but the  
every time script click on the first value.

please help me…

text file:  
String=No  
Qs1String=Yes  
Qs2String=Yes  
Qs3String=Yes  
Qs4String=Yes  
Qs5String=Yes

ie.radio(:value,data[1]).set  
log.info “value Set No”;  
ie.radio(:value,data[2]).set  
log.info " Profile Question 1 Set No";  
ie.radio(:value,data[3]).set  
log.info “Profile Question 2 Set No”;  
ie.radio(:value,data[4]).set  
log.info " Profile Question 3 Set No";  
ie.radio(:value,data[5]).set  
log.info " Profile Question 4 Set No";  
ie.radio(:value,data[6]).set  
log.info " Profile Question 5 Set No";
