I am working on a game in which characters are randomly generated, including their names. I intend for the names to be broken into 2-4 parts (prefix, middle, suffix); each part will be a short (1-4 character) string that will be randomly selected from a file and combined to create the full name. For example, if the selected parts from the file were 'bor', 'o', and 'mir', the character's name should read "Boromir".
What would be the ideal way to populate this file (like I said it will need to include lots of 1-4 character strings), serialize it, and then read in a random selection of those strings as needed?
I don't really have many ideas to go off of; I've never done anything like this at all before, but any tips or advice would certainly be appreciated. Thanks.