title: What is the best way to store strings on an Arduino?
body: <p>I have a web server on my Arduino that should render a form to save some data to the <a href="http://en.wikipedia.org/wiki/EEPROM" rel="nofollow">EEPROM</a>. The HTML data has about <code>1500</code> characters. At the moment, my code looks like:</p>
  
  <pre><code>[...]
    serverClient.println("HTTP/1.1 200 OK");
    serverClient.println("Content-Type: text/html");
    serverClient.println("Connnection: close");
    serverClient.println();
    serverClient.println("&lt;!DOCTYPE html&gt;");
  [...]
  </code></pre>
  
  <p>I read about storing the data in <code>PROGMEM</code> using the <code>F</code> keyword like:</p>
  
  <pre><code>[...]
    serverClient.println(F("HTTP/1.1 200 OK"));
    serverClient.println(F("Content-Type: text/html"));
    serverClient.println(F("Connnection: close"));
    serverClient.println();
    serverClient.println(F("&lt;!DOCTYPE html&gt;"));
  [...]
  </code></pre>
  
  <p>But this needs more flash memory. </p>
  
  <p>Is there any benefit using the second way? Or are there better solutions? </p>
  
  <p>(I can't use a <a href="http://en.wikipedia.org/wiki/Secure_Digital" rel="nofollow">SD card</a> to store the data.)</p>