Anywho - I got a pretty good understanding of general programming now. I'm closing in on the exam in imperative programming ( in C ), and I've got a quite good understanding on programming in general. So I thought I'd try and make a text based RPG, and I don't really have an issue with most of the things I'll be making (functions etc), but one thing we havn't quite touched in lectures yet is data storage (more so than just touching the file I/O). My plan was to create items in structs (possibly a general item struct and then some more specified item structs for various types of items, e.g. a struct for weapons which holds min/max dmg, enhancements (which specifics would then be held in another struct) etc).
I've thought about doing it with arrays too, but structs has hit me like the best solution. However, saving these data values are obviously key, and my initial idea was to store it in a .txt or equal file, where I could then acces it through the file I/O. I may be totally off course here, as there may be better practices (please do enlighten me, only going on what I've learned so far). I realize many people write this in C++, but my main priority here is to stay in C, and I thought making a larger project would enhance my knowledge of the general software engineering principles even more (not to mention practice makes perfect and repetition gives "on the top of the head know how").
I've been looking around, but as said most of these are in C++.
TL;DR: General programming patterns for saving/retrieving data in C, and general structure of files etc of a project of this type.
If any elaboration is needed please ask.