title: storing simple user action/click tracking (associative array in text??)
body: <p>I've been storing some simple user click-actions in text files so I can easily refer to them. 
  I'm not looking to go the full db route, as I'm looking to learn hadoop, and should be able get the data from my log files, but until then I'm looking for a fairly light-weight solution. </p>
  
  <p>I could continue with the txt file route, but it ends up being a lot of files (one for each type of user click). </p>
  
  <p>What i was thinking of doing is putting an associative array into a text file (one for each day), and then reading in that associative array and updating key=>value to represent the click area and number of clicks. </p>
  
  <p>Of course, I can't store an associative array directly in a txt file, without going through a bunch of 'read into an array', 'check array for existing key', 'update array', print out to txt'. </p>
  
  <p>All of this just doesn't seem very efficient (even just reading the txt into the array is currently a bit of a pain). </p>
  
  <p>I'm hoping somebody has a better suggestion for how I should do this. </p>