I left the programming group so I can't comment on your question any more, but I agree with others that what you are attempting to do is basic serialization. I think people are basically saying that you need to start from simple and work your way to more complex. Reading and writing from SQLite is more complex than a simple fwrite/fread, but less complex than connecting to a central RDBMS. 

Based on your initial description, it sounds like you need a simple File read/write, however your data sounds a little more complex than a single variable. When you write it to disk, you obviously need to know what you are reading back.

If you are a student I would recommend actually coming up with your data format: it is simpler than implementing a library, and simpler to read back; it is also a good learning experience.

For an interesting discussion of the pros/cons:
http://stackoverflow.com/questions/1809670/how-to-implement-serialization-in-c