title: storing quiz questions in local storage
body: <p>So for a school assignment I have to make an interactive quiz with javascript. That I did, the problem is that it is required for me to store all the questions in an external text file on local storage. 
  My questions are stored in an array of objects, and I add them to radio buttons with a 'for'-loop</p>
  
  <p>I googled it, but I didn't find an answer that made it clear enough for me... 
  I understand that I can read files out, but I have no idea how I would add the questions to my existing for-loops</p>
  
  <p>I'm still totally new to JS, and have no idea how to implement this </p>
  
  <p>here's a code snippet, where i take the questions out of the array, and add them to the list with radio buttons</p>
  
  <pre><code>var i = 0;
  var len = allQuestions.length;
  
  function frageStellen(i){
  var anzahlVarianten = allQuestions[i].choices.length;
  
  
      for(var j = 0; j &lt; anzahlVarianten; j++){
  
  
      //create radio buttons
  
      var option = document.createElement("li");
      var variante = document.createElement("input");
      variante.setAttribute('type', 'radio');
      variante.setAttribute('name', 'gestellteFrage'+ i);
      option.setAttribute('class', '.option');
      //fragen-Inhalt
      var inhalt = document.createTextNode(allQuestions[i].choices[j]);
  
  
      myOptions.appendChild(option);
      option.appendChild(variante);
      option.appendChild(inhalt);
      myQuestion.innerHTML = allQuestions[i].question;
      }
  }
  </code></pre>
  
  <p>Here is the link to the full code: <a href="http://jsfiddle.net/7HaCz/" rel="nofollow">http://jsfiddle.net/7HaCz/</a></p>
  
  <p>please help!</p>