id like a script that loads up a text file "myfile.txt" and places a checkbox after each word. When a checkbox is selected that number word and word are placed into a file
if "myfile.txt" contains
here is my story. thanks for reading.
when i execute my script i will see
here  is  my  story . thanks  for  reading .
there will be a submit and reset button at the end and if for example i click the check boxes after "here" "thanks" and "reading" and file called "gaps.txt" will then contain
1 - here
5 - thanks
7 - reading