I believe an SQLite DB would serve your purpose. Its file based at the same
times one can use it as a Database.

http://www.sqlite.org/



On Saturday, February 1, 2014, cynic limbu <lists / ruby-forum.com> wrote:

> Now I'm not talking about those type of databases that keeps datas of a
> given website. I'm talking about something similar to it but that can
> work offline. Still confused? Here is what I'm talking about.
>
> Let's say we have a login screen
>
> Source code : http://pastebin.com/iMvgxkMk
>
> Can I do something like that?
>
> The variable will empty itself and start over after the program is
> closed so can I do something so the program can save and retrieve data
> from a file anytime?
>
> Let's revise, all I'm asking for is
> Program creates a new file.
> Program can add/remove/retrieve data from the file.
>
>
> Just like a database for a website.
>
> Thanks.
>
> --
> Posted via http://www.ruby-forum.com/.
>


-- 
Harisankar P S
https://twitter.com/coder_hsps | http://tech.hsps.in