This article is based on chapter 9 from Ruby in Practice by Jeremy McAnally and Assaf Arkin.

Using Plain-Text Files for Data Persistence (PDF)