title: Saving and loading data in a node.js server and passing it to an html5 file
body: <p>So I'm very new to node.js and javascript, and i made a server that works great by loading up an html file on request. This html file does not contain any of it's own data, it simply sources from the internet and displays some images and text i wrote. I've decided to make the site play an audio file when it is opened. I know this is done easily with the <code>&lt;audio&gt;</code> tag in html5 but the src="" lets me take a file from the computer and place it there, of course when i open the site from another computer the file obviously isn't found and thus isn't played. I figure the audio file must be kept as a variable on the server and passed into the html file's <code>&lt;audio src= &gt;</code> tag. How do i do this? It is an .mp3(but i can get it to any other audio format) file about 30 seconds long. I just want it to play when the site is loaded from another computer(over the internet). Also how would i go about doing the same with pictures or any other data that i don't want to source from the internet but rather keep as data in my server?</p>
  
  <pre><code>var http = require('http');
  var fs = require('fs');
  
  var simpleServer = http.createServer(function(request, response){
      response.writeHead(200, {"Content-Type":"text/html"});
      fs.readFile('./Picture.html', null, function(error, data){
          if(error){
              response.writeHead(404);
          } else{
              response.write(data);
          }
          response.end();
      })
  });
  
  simpleServer.listen(80, '0.0.0.0', function() {
      console.log('Listening to port:  ' + 80);
  });
  
  console.log("Server running...");
  </code></pre>