I am creating a sort of in-game database, which will store information collected by the player. The player will also be able to write notes and change information during game-play.

In order to accomplish this I'm using a sequence of file_str_read and file_str_write commands. For a lot of the information, I can just write it in one big txt file, and access it when I need to . However, for any strings that the player gets to change, or rewrite, I create a separate file, with a unique filename, for that one piece of data.

I am concerned about creating so many different, individual files, but should I be? Is there anything wrong with making lots of files, possibly hundreds or thousands of small text files?

If so, my question is this: Is there a way to rewrite data in a file without messing up the other information stored in the same file?